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

captureException does not send exception #100

Closed
paulius005 opened this issue Jul 25, 2018 · 3 comments
Closed

captureException does not send exception #100

paulius005 opened this issue Jul 25, 2018 · 3 comments
Assignees

Comments

@paulius005
Copy link

paulius005 commented Jul 25, 2018

I am experiencing two issues in the renderer context

  1. captureException || captureMessage does not send anything, but the functions do exist, the network tab shows no activity
  2. if I call Sentry.captureException outside of the function where I initialize sentry, captureException doesn't actually exist. Printing Sentry.captureException returns null

For testing purposes I am only running this on the renderer right now and am on version 0.7.0

Here is a video explaining my issue and showing my code:
https://www.useloom.com/share/61aabfd9a655435896544403d168903d

@HazAT
Copy link
Member

HazAT commented Jul 26, 2018

Hey,
thanks for the cool bug report, that's a first for me to receive a video explaining the bug in detail 😅 💯

So to your issue, YES you also need to setup Sentry in the main process since we pipe everything through the main process to not have any "frontend" xhr going on. We use electron net module to send everything which is more stable and reliable.

One thing I find strange is, that Sentry.captureException suddenly returns null, that seems odd, not really sure what's going on there but please try to first also setup Sentry in the main process then we know more :)

@HazAT HazAT self-assigned this Jul 26, 2018
@mcfearsome
Copy link

I am seeing a possibly similar issue. I am attempting to test my integration by calling Sentry.captureMessage('Test Connection') when a Vue component is mounting (not sure if using Vue matters here). I am seeing the following message in my console:

  { SentryError: HTTP Error (400): No JSON data was found
      at new SentryError (/Users/mcfearsome/weblinc/projects/ja-cyo/node_modules/@sentry/core/src/error.ts:7:5)
      at ClientRequest.req.on (/Users/mcfearsome/weblinc/projects/ja-cyo/node_modules/@sentry/electron/src/main/transports/net.ts:36:20)
      at emitOne (events.js:115:13)
      at ClientRequest.emit (events.js:210:7)
      at URLRequest.ClientRequest.urlRequest.on (/Users/mcfearsome/weblinc/projects/ja-cyo/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/api/net.js:209:12)
      at emitOne (events.js:115:13)
      at URLRequest.emit (events.js:210:7) name: 'SentryError' }

@timfish
Copy link
Collaborator

timfish commented 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.

@timfish timfish closed this as completed Feb 16, 2022
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

4 participants