-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js) in your SDK setup.
@sentry/react
SDK Version
7.47.0
Framework Version
17.0.2
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: '<DSN>',
debug: true,
release: 'local-test',
environment: 'local-test',
integrations: [new HttpClientIntegration()],
});Steps to Reproduce
I've prepared an example repository that demonstrates this issue: https://github.com/eipc16/sentry-request-object-bug-example. So you can just:
git clone git@github.com:eipc16/sentry-request-object-bug-example.git .npm installnpm run dev- Click on the
Fetch with Request Objectbutton
If you do not want to clone this repo then:
- create a project with '@sentry/react
and '@sentry/integrations - configure
HttpClientintegration from@sentry/integrations - execute a fetch request by sending to it a whole Request object (it has to have a body). Example:
fetch( new Request('/api/error', { method: 'post', body: JSON.stringify({ property: 'value' }) }) )Expected Result
Instrumentation should work and 5XX should result in an event to Sentry
Actual Result
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Fields
Give feedbackNo fields configured for issues without a type.
