Skip to content

Node Fetch: Cannot cancel a stream that already has a reader 🙏 #9216

Closed Answered by suhaotian
19Qingfeng asked this question in Q&A
Discussion options

You must be logged in to vote

@19Qingfeng Add this to your entry.server.tsx, then it will not crash, the promise reject crash, it's node's default behaviour.

process.addListener('unhandledRejection', err => {
  console.log('unhandledRejection error: ', err);
  // Do something for example: report log
})

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
7 replies
@suhaotian
Comment options

@19Qingfeng
Comment options

@suhaotian
Comment options

@19Qingfeng
Comment options

@suhaotian
Comment options

Comment options

You must be logged in to vote
4 replies
@19Qingfeng
Comment options

@suhaotian
Comment options

@19Qingfeng
Comment options

@jacobjohn-transitiv
Comment options

Answer selected by 19Qingfeng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants