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

React native: No Bugsnag API Key set, js engine: hermes #998

Closed
v3solutions opened this issue Aug 15, 2020 · 6 comments
Closed

React native: No Bugsnag API Key set, js engine: hermes #998

v3solutions opened this issue Aug 15, 2020 · 6 comments
Labels
bug Confirmed bug released This feature/bug fix has been released

Comments

@v3solutions
Copy link

Hi,
Since upgrading bugsnag to latest version, can't make it work on adroid. Crashes on opening, however it does send a crash report to my bugsnag account. Bugsnag error: "No Bugsnag API Key set, js engine: hermes". It works no problem with ios.
Api key is set inside AndroidManifest.xml. I've tried inside App.js with and without apiKey:

import Bugsnag from '@bugsnag/react-native';
Bugsnag.start({
  apiKey: '90d03f98aa81640e********',
});

"react-native": "0.63.2"
"@bugsnag/react-native": "^7.3.1"

using with hermes.

@abigailbramble
Copy link

abigailbramble commented Aug 18, 2020

Hi @v3solutions - are you able to share more about your reproduction case with us?

We are currently unable to reproduce what you are seeing. We can create a Hermes application for Android and successfully send errors to Bugsnag in release mode.

Perhaps you could write into [email protected] with full code snippets of how you are configuring and initialising Bugsnag for your application?

@abigailbramble abigailbramble added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label Aug 18, 2020
@steve-nester-uk
Copy link
Contributor

@v3solutions we have been able to reproduce a similar issue, which is possibly related to the use of minifyEnabled / proguard for release builds. We are still investigating but would be interested to know if your issue only happens during release builds (e.g. --variant=release) and whether you are using minifyEnabled?

@v3solutions
Copy link
Author

@steve-nester-uk sorry for a delay. I'm using minifyEnabled, it does work as a debug. Seems only release build has this issue. If I comment out

Bugsnag.start({
});

it works too.
Let me know if you need anything. I'll be more active this week.

@steve-nester-uk steve-nester-uk added backlog We hope to fix this feature/bug in the future bug Confirmed bug and removed awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. labels Aug 24, 2020
@bugsnagbot bugsnagbot added scheduled Work is starting on this feature/bug and removed backlog We hope to fix this feature/bug in the future labels Sep 1, 2020
@tobiasbu
Copy link

tobiasbu commented Sep 2, 2020

Hi, I recently upgraded React Native to 0.63.2 and Bugsnag to latest version and I started to receiving the "No Bugsnag API Key set" error in Android.

As suggested by @steve-nester-uk disabling enableProguardInReleaseBuilds/minifyEnabled option worked for me in release variant. I'm not using hermes. Thanks!

@mattdyoung
Copy link
Contributor

@tobiasbu - thanks for the info. Yes, we can confirm the bug can affect projects whether or not they use Hermes. We're working on the fix.

@johnkiely1
Copy link
Member

This has now been fixed and released in v7.3.4

@johnkiely1 johnkiely1 added released This feature/bug fix has been released and removed scheduled Work is starting on this feature/bug labels Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug released This feature/bug fix has been released
Projects
None yet
Development

No branches or pull requests

7 participants