Production throw unhandledRejection warning
See original GitHub issueIn production(run after build with webpack) throw unhandledRejection
The error output:
{
remainingPoints: 0,
msBeforeNext: 900000,
consumedPoints: 5,
isFirstInDuration: false
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
how to properly throw an error if promise is rejected ...
The unhandled rejection warning, no - you should not write code that doesn't handle errors. It would have been better to write p.then(console....
Read more >Unhandled rejection warnings when expecting a rejection #173
It has a promise chain whose catch block throws an exception. I assumed this gets translated into a rejected promise, especially since the...
Read more >Handling unhandled promise rejections in async functions
But this code will always produce a warning about an unhandled rejection: const delay = require('delay');const main = async () => {
Read more >Node.js 15 release: Updated handling of rejections, npm 7, N ...
In previous versions of Node.js, if there was an unhandled rejection, you would get a warning about the rejection and a deprecation warning....
Read more >Node.js 15 Is Out! What Does It Mean for You? - Maxim Orlov
This error originated either by throwing inside of an async function ... You can set up alerts in production and track down unhandled...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@suhaotian
consume
rejects, when there is not enough points to consume, see this section in docs. You can use penalty method instead. However, it can be also rejected on Redis error. You can usepenalty
method with insuranceLimiter or add try/catch block. Hope, this helps.@suhaotian Hi, most likely, there is uncaught Promise rejection. what is limiter related code in your project?