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
Sentry.sentryHandleError failed to normalize Remix request on Node v22 #12472
Sentry shows "failed to normalize Remix request on Node". No error is logged (this bit I'm not sure why).
Adding some logs on Sentry, I see the following:
TypeError: Cannot read properties of undefined (reading 'depth')
at [nodejs.util.inspect.custom] (node:internal/deps/undici/undici:3398:9)
at Object.normalizeRemixRequest (/workspace/remix/node_modules/@sentry/remix/cjs/utils/web-fetch.js:132:63)
at captureRemixServerException (/workspace/remix/node_modules/@sentry/remix/cjs/utils/instrumentServer.js:121:34)
This is all pretty similar to the issue I reported a while back. I feel like the current solution may break anytime the internals change. It doesn't have to. Node v22 will be LTS in 4 months, and Remix v2 already has a flag to use node's fetch implementation on the server instead of web fetch.
Yes, my PR will fix this, but realized you're supporting older JS versions, so need to change from Object.fromEntries(). I'll update the PR and add a test case
Activity
Lms24 commentedon Jun 13, 2024
Hey @clovis1122 thanks for writing in!
@onurtemizkan when you have a minute, would you mind taking a look? Any chance this will be fixed/no longer an issue by #12110?
onurtemizkan commentedon Jun 13, 2024
Thanks for the issue report @clovis1122.
@Lms24, looks like #12479 will resolve this. I'll test and review today.
kiliman commentedon Jun 13, 2024
Yes, my PR will fix this, but realized you're supporting older JS versions, so need to change from
Object.fromEntries(). I'll update the PR and add a test case