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

Internal Server Error if request to Rollbar fails #2

Open
ktalebian opened this issue Oct 2, 2018 · 2 comments
Open

Internal Server Error if request to Rollbar fails #2

ktalebian opened this issue Oct 2, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@ktalebian
Copy link

The request to nginx fails with Internal Server Error if the request to rollbar fails. For example, set an incorrect token, and then use the reporter. You'll get a

[error] 1480#0: *69 [lua] rollbar.lua:100: invalid Rollbar response: 401 {
   "err": 1,
   "message": "invalid access token"
}, context: ngx.timer, client: x.x.x.x, server: 0.0.0.0:80

And the request fails. Failure to publish to rollbar should not cause the service to fail and the failure should be handled gracefully.

@EtienneM EtienneM added the bug Something isn't working label Oct 3, 2018
@EtienneM
Copy link
Member

EtienneM commented Oct 3, 2018

You're right. I'll not have time to work on it right away but if you can submit a PR on this one, I will happily merge it in master.

@EtienneM
Copy link
Member

@ktalebian I will actually need more details on this issue. The Rollbar request is done in a light thread:

ngx.timer.at(0, send_request, level, title, debug.traceback(), request)

Hence, if the request to Rollbar fails, nothing wrong happens to the main thread. Or am I missing about what you report?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants