Description
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'));
});