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.

Raven.showReportDialog not working with Cordova project

See original GitHub issue

The Raven.showReportDialog does work with Cordova iOS / Android platforms, I got the the 403 Forbidden error when trying to run the following in Safari console

Raven.captureMessage('hello')
Raven.showReportDialog();

[Error] Failed to load resource: the server responded with a status of 403 (FORBIDDEN) (error-page, line 0)  https://sentry.*.*/api/embed/error-page/?eventId=d7fc7cb94a9441ca977960d6f75ddb0a&dsn=*

The above snippets work fine in Cordova Browser platform.

I’d suspect that it has something to do with the fact the both iOS / Android platforms running the index.html in file:// protocol instead of http:// protocol Browser

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
HazATcommented, Jan 4, 2018

We have a new Cordova SDK https://github.com/getsentry/sentry-cordova Documentation: https://docs.sentry.io/clients/cordova/

Feedback is highly appreciated, closing this.

1reaction
benvinegarcommented, Sep 28, 2017

Since there’s no origin checking on mobile devices for Cordova apps, there’s very little difference between using a “secret” key or using a public key. These keys permit write-only access of event data; they do not confer any other API access.

Read more comments on GitHub >

github_iconTop Results From Across the Web

showReportDialog not working - #sentry
Hi,. When I call Raven.showReportDialog(); it does not work, gives me this error RavenConfigError {name: "RavenConfigError", message: ...
Read more >
Top 5 raven-js Code Examples - Snyk
To help you get started, we've selected a few raven-js examples, based on popular ways it is used in public projects. Secure your...
Read more >
Error logging to Sentry.io - source maps not working - ionic-v3
Hi, has anyone managed to log errors to sentry.io with correct source mapping? I am using ravenjs for the integration.
Read more >
Recently Active 'sentry' Questions - Page 2 - Stack Overflow
Problem Description: I am developing a JavaScript sdk package, ... I have uploaded my Cordova app on PlayStore and I got the following...
Read more >
User Feedback for JavaScript | Sentry Documentation
When feedback is provided, Sentry pairs the feedback with the original event, giving you additional insights into issues. The screenshot below provides an ......
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