-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime.UnhandledPromiseRejection #40
Comments
Im having the same error |
2020-12-10T14:31:56.852Z 2f303802-9292-42ef-88ea-6031dc709105 ERROR Invoke Error |
+1 same issue |
+1 having the same , whats the root cause of this any intel ? |
I had this again today. I gave more memory to the lambda function, it was 128, it's now 1024. It's a shot in the dark... |
+1 same issue; any solutions? |
We are facing this issue very frequently. Is there any solution to this? Is it because of the cold start in the lambda environment? We have noticed in our error monitoring tool that all the transactions with this issue had the cold start. |
This is a wrapper that retries downloading the certificates if it fails for some reason: let cognitoExpress;
async function cogValidateToken(token, retryCounter = 0) {
if (!cognitoExpress) {
cognitoExpress = new CognitoExpress({
region: 'SET',
cognitoUserPoolId: 'SET',
tokenUse: 'access',
});
}
try {
return await cognitoExpress.validate(token);
} catch (e) {
if ((retryCounter < 25) && String(e.message).startsWith('Unable to generate certificate due to')) {
console.error(e);
cognitoExpress = null;
return cogValidateToken(token, retryCounter + 1);
}
throw e;
}
} Call with const jwt = await cogValidateToken(token); |
I'm running into this in my CI/CD where the VM doesn't have network access. Line 54 of strategy.js is throwing with no catch and I can't find a way to quiet it down. |
Ok lemme take a look
…On Wed, Jul 12, 2023 at 10:52 AM Marty Kane ***@***.***' via 33Mail ***@***.***> wrote:
This email was sent to the alias ***@***.***' by '
***@***.***',
and 33Mail forwarded it to you. To block all further emails to this alias
click here
<http://www.33mail.com/alias/unsub/41bdfade131b958a27a3e30e285264d5>
I'm running into this in my CI/CD where the VM doesn't have network
access. Line 54 of strategy.js is throwing with no catch and I can't find a
way to quiet it down.
—
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGRKZRDHLD53XHA4NHZPWDXP224FANCNFSM4TGW7ZFQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
enviroment:
provider:
name: aws
runtime: nodejs12.x
lambda
The text was updated successfully, but these errors were encountered: