Skip to content
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

Reporting from Edge doesn't work with default referralPolicy='origin' #1233

Closed
sergej-s opened this issue Feb 15, 2018 · 0 comments
Closed

Comments

@sergej-s
Copy link

sergej-s commented Feb 15, 2018

Hello, everyone!

What is the current behavior?

I cannot send an error event from Microsoft Edge (41.16299.248.0) with default fetch options where referrerPolicy='origin'. The catch block in _makeRequest shows an error "Invalid argument".
But everything works if referrerPolicy changed to 'no-referrer' or deleted.
Here is repl.it demo
https://repl.it/repls/MessyHummingKeyboard

What is the expected behavior?
I thought that the default fetch options should work in every browser. But I am not much familiar with those fetchOptions. Could you explain is it a normal behavior or a bug?

Raven.js v3.22.1 from npm
Windows 10, Edge 41.16299.248.0
Could-based Sentry

Additionally I noticed that debug option from config doesn't do anything. It seems it is not used in the code and doesn't turn on logging.
I found that Raven.debug = true is working, but doesn't show sufficient debug info because catch block on line 1954 doesn't pass error object into logging func:

 ['catch'](function() {
          opts.onError &&
            opts.onError(new Error('Sentry error code: network unavailable'));
        });
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

No branches or pull requests

1 participant