Skip to content

Headers already sent when errors are thrown from AsyncIterator #96

Answered by enisdenjo
bhamon asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the delayed answer. The issue actually stems from graphql-js not handling errors thrown during iteration. I'd prefer having this handled by the user (or graphql-js) instead.

I've added a recipe that showcases how you may achieve this by augmenting the subscribe function, check it out here.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by enisdenjo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #92 on March 27, 2024 18:32.