You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default setting for autoInstrumentation.requestHandler as true can truncate MDX output in Astro #9985
I am unable to reproduce this issue in isolation and I am seeking further debugging steps.
In my project when I have autoInstrumentation.requestHandler set to true (either as above, or by not specifying autoInstrumentation at all and letting the default value take effect) mdx pages are truncated. Short pages are blank, and long pages have the end cut off.
This does not happen with md or astro pages, only mdx.
Expected Result
The following screenshots are from the end of a long mdx page when autoInstrumentation.requestHandler is set to false:
Actual Result
These screenshots are from the end of that same long mdx page when autoInstrumentation.requestHandler is set to true (or unspecified):
Activity
knpwrs commentedon Dec 27, 2023
This is also in the astro/vite watch dev server, I have not been able to try a built version yet.
lforst commentedon Dec 28, 2023
I have a suspicion that we are somehow truncating the response stream here:
sentry-javascript/packages/astro/src/server/middleware.ts
Lines 162 to 171 in ea74266
Superficially looking at it I don't see anything immediately wrong. I also have yet to reproduce
I would have one thing I would want to try which would affect non-strictly-utf8-encoded streams: #9989
Maybe you could try an isolated reproduction with non-utf8-encoded files?
I will have @Lms24 take a more educated look next week!
AbhiPrasad commentedon Jan 4, 2024
We shipped the change mentioned by Luca in https://github.com/getsentry/sentry-javascript/releases/tag/7.92.0 - please give it a try!