Skip to content

Conversation

kiliman
Copy link
Contributor

@kiliman kiliman commented Jun 12, 2024

Remix v2.9+ now supports undici native fetch. normalizeRemixRequest() would throw an error when processing headers. This PR uses the standard Object.fromEntries() to convert Headers into an object.

@AbhiPrasad AbhiPrasad requested a review from onurtemizkan June 12, 2024 18:06
@onurtemizkan onurtemizkan linked an issue Jun 13, 2024 that may be closed by this pull request
3 tasks
@onurtemizkan onurtemizkan changed the title fix: invalid headers access when using nativeFetch fix(remix): Add nativeFetch support for accessing request headers Jun 13, 2024
kiliman added 3 commits June 14, 2024 15:00
Remix v2.9+ now supports `undici` native fetch. `normalizeRemixRequest()` would throw an error when processing `headers`. This PR uses the standard `Object.fromEntries()` to convert `Headers` into an object.
@AbhiPrasad AbhiPrasad merged commit b4b51c2 into getsentry:develop Jun 17, 2024
@AbhiPrasad
Copy link
Member

Thanks for the PR @kiliman :)

@kiliman kiliman deleted the patch-1 branch June 17, 2024 19:16
@AbhiPrasad
Copy link
Member

Fix released with https://github.com/getsentry/sentry-javascript/releases/tag/8.10.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sentry.sentryHandleError failed to normalize Remix request on Node v22
2 participants