Node Fetch: Cannot cancel a stream that already has a reader 🙏 #9216
-
Beta Was this translation helpful? Give feedback.
Answered by
suhaotian
Apr 11, 2024
Replies: 2 comments 11 replies
-
What's the point here to abort the request? |
Beta Was this translation helpful? Give feedback.
7 replies
-
@19Qingfeng Add this to your process.addListener('unhandledRejection', err => {
console.log('unhandledRejection error: ', err);
// Do something for example: report log
}) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
19Qingfeng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@19Qingfeng Add this to your
entry.server.tsx
, then it will not crash, the promise reject crash, it's node's default behaviour.