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

Fix for a 403 error response from Nginx #198

Merged
merged 1 commit into from
Mar 13, 2020
Merged

Fix for a 403 error response from Nginx #198

merged 1 commit into from
Mar 13, 2020

Conversation

ZenAnnard
Copy link
Contributor

It seems possible to access Rollbar's servers and get a 403 Forbidden response.
The code didn't handle this well at all since it always expects a json response
from the server.
This patch checks if the regex matcher succeeded and gracefully returns an error
response so you can actually determine what is going on.

It seems possible to access ROllbar's servers and get a 403 Forbidden response.
The code didn't handle this well at all since it always expects a json response
from the server.
This patch checks if the regex matcher successed and gracefully returns an error
response so you can actually determine what is going on.
@Macworld34
Copy link

Great that for that problem $olve

Copy link
Contributor

@basoko basoko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Thanks @ZenAnnard for the fix!

@basoko basoko merged commit 3197d2e into rollbar:master Mar 13, 2020
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

Successfully merging this pull request may close these issues.

3 participants