Describe the bug
I'm using this OIDC package for handling governmental authorized authentication and it works like a charm in development env.
I use tsc to being able to run it with Node on Google AppEngine. When the server is live, and it users the Issuer.discover on the authority url, it times out and exits the container.
So short - when a deployed node server uses Issuer.discover(AUTHORITY_URL) it times out after 3500ms.
To Reproduce
This is the helperFunction to initialize and retrieve the issuer and client
throw new RPError(outgoing request timed out after ${opts.timeout}ms);
^
RPError: outgoing request timed out after 3500ms
at /layers/google.nodejs.yarn/yarn_modules/node_modules/openid-client/lib/helpers/request.js:136:13
at async Function.discover (/layers/google.nodejs.yarn/yarn_modules/node_modules/openid-client/lib/issuer.js:171:22)
[start] 2022/03/23 15:51:43.184932 Start program failed: failed to detect app after start: ForAppStart(): [aborted, context canceled. subject:"app/invalid" Timeout:30m0s, attempts:949 aborted, context canceled. subject:"app/valid" Timeout:30m0s, attempts:949]
Container called exit(1)
Expected behaviour
It was expected that on server startup, it would retrieve the Issuer.discover to generate the Client so this always was accessible when a call was made with regards to the OIDC client. If the request was made to /login it would send maker the brokerURL to redirect on the website, and handle the Callback later on.
But it never gets past the initialization of the discover.
Environment:
openid-client version: 5.1.4
node version: 16.13.1
Typescript version: 4.6.2
Hope the prodived info is enough and that you can help me out of this pickle :-)
Describe the bug I'm using this OIDC package for handling governmental authorized authentication and it works like a charm in development env. I use tsc to being able to run it with Node on Google AppEngine. When the server is live, and it users the Issuer.discover on the authority url, it times out and exits the container.
So short - when a deployed node server uses Issuer.discover(AUTHORITY_URL) it times out after 3500ms.
To Reproduce This is the helperFunction to initialize and retrieve the issuer and client
This is how it's called on server startup
And this is how my login route (Just to retrieve the authorizationUrl)
Error from AppEngine logs
/layers/google.nodejs.yarn/yarn_modules/node_modules/openid-client/lib/helpers/request.js:136
throw new RPError(
outgoing request timed out after ${opts.timeout}ms
); ^Expected behaviour It was expected that on server startup, it would retrieve the Issuer.discover to generate the Client so this always was accessible when a call was made with regards to the OIDC client. If the request was made to
/login
it would send maker the brokerURL to redirect on the website, and handle the Callback later on.But it never gets past the initialization of the discover.
Environment:
Hope the prodived info is enough and that you can help me out of this pickle :-)