<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
0D50Z00008GiRswSAFOkta Classic EngineAdministrationAnswered2024-04-15T12:23:03.000Z2018-08-29T03:17:37.000Z2019-04-03T06:04:31.000Z

TimotyC.73848 (Customer) asked a question.

Unable to run samples-nodejs-express-4

Hi there,

Just started with Okta to evaluate the product, but unable to run anything from the samples-example bundle mentioned above. The errors I am getting are:

 

Run: npm run custom-login-server

 

Error:

> @okta/samples-nodejs-express-4@3.0.0 custom-login-server /Users/tim/Desktop/okta-example

> node custom-login/server.js

 

(node:75789) UnhandledPromiseRejectionWarning: RequestError: Request timed out

  at timeoutFn (/Users/tim/Desktop/okta-example/node_modules/got/index.js:319:53)

  at asPromise (/Users/tim/Desktop/okta-example/node_modules/got/index.js:397:18)

  at got (/Users/tim/Desktop/okta-example/node_modules/got/index.js:637:10)

  at Function.got.(anonymous function) [as get] (/Users/tim/Desktop/okta-example/node_modules/got/index.js:655:31)

  at Object.get (/Users/tim/Desktop/okta-example/node_modules/openid-client/lib/http.js:15:14)

  at Function.discover (/Users/tim/Desktop/okta-example/node_modules/openid-client/lib/issuer.js:195:28)

  at Object.oidcUtil.createClient.context [as createClient] (/Users/tim/Desktop/okta-example/node_modules/@okta/oidc-middleware/src/oidcUtil.js:30:17)

  at new ExpressOIDC (/Users/tim/Desktop/okta-example/node_modules/@okta/oidc-middleware/src/ExpressOIDC.js:109:14)

  at new SampleWebServer (/Users/tim/Desktop/okta-example/common/sample-web-server.js:30:16)

  at Object.<anonymous> (/Users/tim/Desktop/okta-example/custom-login/server.js:35:1)

(node:75789) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:75789) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


This question is closed.
Loading
Unable to run samples-nodejs-express-4