
TimotyC.73848 (Customer) asked a question.
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.

do you have the correct endpoint set. Seems like connection issue. Could be this issue:
https://github.com/okta/okta-oidc-js/pull/126