-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
@sentry/nextjs: withSentry with webpack 5 crashes server with ERR_STREAM_WRITE_AFTER_END #3636
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
Comments
Same setup and same issue. Thanks for reporting the temporary workaround -> downgrading to @sentry/nextjs @ 6.4.1 worked for me |
same issue here |
this move to |
Same issue here, just upgraded to 6.5.0, and it brought down our site. All NextJS API Routes started returning 500 errors with no Sentry logs / alerts, |
Hey, sorry about that, we are working on a fix for this as we speak. |
|
This should be fully resolved with #3811. Please open another GH issue if there are further problems. |
Package + Version
@sentry/nextjs @ 6.5.0
next @ 10.2.3
Description
When using
@sentry/nextjs
with webpack 5, calling any API function wrapped inwithSentry
will crash the server.After a while debugging, the
withSentry
function seems to throw an error (well, it throws the valuefalse
) after the API function returns. This causes Nextjs to send a 500 error response, however because the function has already sent a response, this causes an uncaughtERR_STREAM_WRITE_AFTER_END
error, crashing the server.Workarounds
The text was updated successfully, but these errors were encountered: