<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00008JPhLySALOkta Classic EngineOkta Integration NetworkAnswered2020-04-28T13:50:10.000Z2020-04-21T12:30:54.000Z2020-04-28T13:50:10.000Z

EswaranB.46530 (Customer) asked a question.

Error 500: 'expected audience is required'

Hello Team - I am new to Okta authentication services. I am following the example code (https://github.com/oktadeveloper/okta-node-rest-api-example) as mentioned by the blog post (https://developer.okta.com/blog/2018/08/21/build-secure-rest-api-with-node). But unfortunately I am facing when I tried few simple command line invocations

node client http://localhost:3000/parts

or even

node client http://localhost:3000/parts post '{"partNumber":"asdf-1234"}'

 

Error: StatusCodeError: 500 - "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>expected audience is required</pre>\n</body>\n</html>\n"

 

Any tip/help would be appreciated.


  • User15840128127994021225 (Vendor Management)

    Hello, Eswaran!

     

    Thank you for posting this question! I would strongly recommend you to create a separate ticket on this matter, as your question addressed suits the Okta Developer Support team.

     

    Have a nice day!

    Expand Post
This question is closed.
Loading
Error 500: 'expected audience is required'