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.

Could not connect to Sentry main process. Did you call init?

See original GitHub issue

Could not connect to Sentry main process. Did you call init?

But I did init it !!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

2reactions
timfishcommented, May 21, 2020

An Electron app is made up of at least 2 node processes. The main process and a renderer process for each Electron window. @sentry/electron collects and merges events from all renderers in the main process so you need to call init there too.

I’ll submit a PR to improve the above error message to be more clear.

https://docs.sentry.io/error-reporting/quickstart/?platform=electron#configure-the-sdk

image

1reaction
terminatorheartcommented, Oct 28, 2020

An Electron app is made up of at least 2 node processes. The main process and a renderer process for each Electron window. @sentry/electron collects and merges events from all renderers in the main process so you need to call init there too.

I’ll submit a PR to improve the above error message to be more clear.

https://docs.sentry.io/error-reporting/quickstart/?platform=electron#configure-the-sdk

image

after so many people ask question related to this, may be give a more clear demo is necessary

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting for Electron - Sentry Documentation
init call. When you use a relative URL, it's relative to the current origin, and this is the form that we recommend. Using...
Read more >
How to use the @sentry/node.init function in @sentry ... - Snyk
To help you get started, we've selected a few @sentry/node examples, based on popular ways it is used in public projects. ; initialize:...
Read more >
Receiving Sentry error logs from Azure Devops (After Release)
You can refactor your code to prevent calls to SentrySDK.Init or UseSentry , etc. · You might be able to move your Sentry...
Read more >
sentry - Go Packages
You can use Sentry to monitor your application's performance. ... Do not call Flush indiscriminately after every call to CaptureEvent, CaptureException or ...
Read more >
Sentry - Application Monitoring and Error Tracking - YouTube
Will Capozzoli (Solutions Engineer at Sentry ) walks you through how to get the most out of Sentry application monitoring and error tracking ......
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