You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have a demo. My hunch is this happens on an unhandled promise rejection and when the Sentry server returns a non-200 response:
ReferenceError: status is not defined
at ClientRequest.<anonymous> (/Applications/MyApp.app/Contents/Resources/app/node_modules/@sentry/electron/dist/main/transports/net.js:46:25)
at ClientRequest.emit (events.js:223:5)
at ClientRequest.EventEmitter.emit (domain.js:475:20)
at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:93:6152)
at SimpleURLLoaderWrapper.emit (events.js:223:5)
at SimpleURLLoaderWrapper.EventEmitter.emit (domain.js:475:20)
at SimpleURLLoaderWrapper.topLevelDomainCallback (domain.js:130:23)
The relevant code in node_modules/@sentry/electron/dist/main/transports/net.js:
const req = electron_1.net.request(options);
req.on('error', reject);
req.on('response', (res) => {
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
resolve({
status: types_1.Status.fromHttpCode(res.statusCode),
});
}
else {
if (status === types_1.Status.RateLimit) { // this line
The text was updated successfully, but these errors were encountered:
Versions + Platform
@sentry/electron@v1.4.0
electron@v9.1.0
macOS
Description
I don't have a demo. My hunch is this happens on an unhandled promise rejection and when the Sentry server returns a non-200 response:
The relevant code in
node_modules/@sentry/electron/dist/main/transports/net.js
:The text was updated successfully, but these errors were encountered: