panva / openid-client

OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
MIT License
1.83k stars 392 forks source link

OPError: invalid_request (Timeout awaiting 'request' for 4000ms) #684

Closed yaseen104 closed 2 months ago

yaseen104 commented 2 months ago

Describe the bug We are seeing this error being thrown from openid-client.

To Reproduce We are in version 5.6.2. While trying to use the client.callback(redirectUri, parameters[, checks[, extras]]) method we are seeing this issue.

  return await client.callback(currentCallbackUri, querystring, {
    code_verifier: codeVerifier,
    max_age: Configs.authenticationMaxAgeInSeconds // Max_Age for Auth0 authenticated session
  });

This is an intermittent issue.

Expected behaviour We should not see this error and the token should be generated for Auth0

Environment:

Additional context

panva commented 2 months ago

Intermitten timeouts are to be resolved on your network side of things. Nothing for the module to do or change.

yaseen104 commented 2 months ago

@panva Do we know when this timeout occurs ? Like lack of network resources or max memory utilization? Or do you have any recommendation here ?

yaseen104 commented 1 month ago

@panva Any reason you have tagged this as a setup-problem ? Like what kind of setup are we missing?
Is timeout configurable ?