-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED. #9747
Comments
Hi, I saw that you already wrote in on Discord. Thanks for raising this issue. Would you mind sharing a way to consistently reproduce this bug? Ideally by sharing a small repo or stackblitz. Thank you! |
We have been going back and forth with support via email as well. From that conversation we managed to get access to older bundles, primarily bundles before the 27th. Our current setup looks like this now: `<script src="https://browser.sentry-cdn.com/7.81.0/bundle.replay.min.js" integrity="sha384-7dVJzCgPJKHCfCuRyoGhuMDozd1FWu/GdTDiaAxJK4hrOhKoQTtG+yV4DsbRDLAl" crossorigin="anonymous" ></script>
And everything works as expected. We have removed the CDN loader and are now explicit in what version we use. So we can easily reproduce the error by switching out
to this:
And we consistantly raise the error mentioned in the original post. |
I identified the problem and opened a PR to fix it: #9770 |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
Sentry Browser CDN bundle
SDK Version
7.85.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
We are using CDN Bundle:
bundle.replay.min.js
Steps to Reproduce
Any error invoked and captured by Sentry will generate the foillowing error:
InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.
This suddenly started to appear on the 27th of November.
Our only way to resolve it was to remove Sentry in our code.
Expected Result
Expected result would be a captured Sentry event that we later may review.
Actual Result
Stack Trace:
As you can see it seems to me like Sentry is intercepting axios requests. (Marked the row that throws the error. )
We have tried updating axios to the latest version as well without any results.
The text was updated successfully, but these errors were encountered: