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

Bugsnag requires an API key even if it's not supposed to report #65

Closed
phaza opened this issue Aug 11, 2015 · 4 comments
Closed

Bugsnag requires an API key even if it's not supposed to report #65

phaza opened this issue Aug 11, 2015 · 4 comments

Comments

@phaza
Copy link

phaza commented Aug 11, 2015

Even if you've set bugsnag to only report exceptions in production, it still requires an api key in other modes. Worst of all, it gets trapped in an endless exception loop where it throws an exception for no api key being present, and then catches it and tries to submit it. repeat.

I solved it by having my config look like this:
'api_key' => env('BUGSNAG_API_KEY', ''),
compared to:
'api_key' => env('BUGSNAG_API_KEY'),

@ecommerceappbook
Copy link

echo this issue. Thanks @phaza for pointing out this solution. I think either the doc needs to be updated or this "no api key" issue needs to be addressed.

@GrahamCampbell
Copy link
Contributor

Right, this is because we're booting everything in order to decide if we need to log or not. We're looking into doing some refactoring to address this. I'll get back to you soon.

@GrahamCampbell
Copy link
Contributor

I solved it by having my config look like this:

Yes, that looks just fine. :)

@GrahamCampbell
Copy link
Contributor

GrahamCampbell commented Jun 24, 2016

This will be fixed in the next release.

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

3 participants