question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting 403 error on any event sent try

See original GitHub issue

Versions + Platform

  • SDK version - @sentry/electron@>=v2.0.0
  • Electron version - electron@v8.3.1
  • Platform - Windows/macOS/Linux

Description

Can’t send any events when using @sentry/electron >=2.0.0 version Got Sentry Logger [Error]: Error while sending event: SentryError: HTTP Error (403) Downgrading @sentry/electron to <2.0.0 (currently 1.5.2) fix that behavior.

Code:

main.ts

import * as Sentry from '@sentry/electron';

Sentry.init({
  dsn: __DSN_GOES_HERE__,
  debug: true,
});

throw new Error('Dalek says EXTERMINATE!!!');
// or
// Sentry.captureException(new Error('Dalek says EXTERMINATE!!!'));

console output:

Sentry Logger [Log]: Integration installed: InboundFilters
Sentry Logger [Log]: Integration installed: FunctionToString
Sentry Logger [Log]: Integration installed: Console
Sentry Logger [Log]: Integration installed: Http
Sentry Logger [Log]: Integration installed: OnUnhandledRejection
Sentry Logger [Log]: Integration installed: LinkedErrors
Sentry Logger [Log]: Integration installed: OnUncaughtException
Sentry Logger [Log]: Integration installed: Electron
App threw an error during load
Error: Dalek says EXTERMINATE!!!
    at Object.<anonymous> (/Users/***/projects/***/dist/main.js:9:7)
    at Module._compile (internal/modules/cjs/loader.js:968:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:986:10)
    at Module.load (internal/modules/cjs/loader.js:816:32)
    at Module._load (internal/modules/cjs/loader.js:728:14)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at loadApplicationPackage (/Users/***/projects/***/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:109:16)
    at Object.<anonymous> (/Users/***/projects/***/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:155:9)
    at Module._compile (internal/modules/cjs/loader.js:968:30)
Sentry Logger [Log]: Found 0 minidumps
Sentry Logger [Error]: Error while sending event: SentryError: HTTP Error (403)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
etc1208commented, Nov 25, 2021

I am also facing the same issue. with electron 15.3.0 and @sentry/electron^2.5.4

0reactions
timfishcommented, Feb 16, 2022

We have just released v3.0.0 of the SDK which includes a lot of changes and improvements since this issue was opened.

If you can still reproduce this with v3, please open a new issue and I’ll look into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

403 Forbidden Error: What It Is and How to Fix It - Airbrake Blog
The 403 Forbidden Error is an HTTP response status code that indicates an identified client does not have proper authorization to access the ......
Read more >
403 Forbidden Error: What Is It & How To Fix It
In this guide, we'll explore everything you need to know about 403 forbidden errors, including likely causes and several solutions to try.
Read more >
HTTP Error 403 Forbidden: What It Means and How to Fix It
The 403 (Forbidden) status code indicates that the server understood the request but refuses to authorize it...If authentication credentials ...
Read more >
403 Forbidden Error - What Is It and How to Fix It
The 403 Forbidden error happens when a web server denies access to a webpage to a user trying to access it trough a...
Read more >
What Causes the 403 Forbidden Error in HTTP and How Can I ...
Hero image. The 403 Forbidden error message is an HTTP status code that can occur when a client tries to retrieve a resource...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found