You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using rollbar with great success but today I've noticed something that bothers me.
My code is using exception to report invalid GET parameters.
In dev, when I call an invalid URL, I get a 500 error and the error is logged by php.
In prod, where rollbar is enabled, I obtain a blank page with a 200 status.
Having a 200 status can be an issue for a number of reasons (for example because it means a search engine could index pages whose URL is invalid).
In my opinion, most people would like the server to return a 5XX status, so it makes sense to implement this in rollbar's error_handler.
Do you think that's a good idea ?
The text was updated successfully, but these errors were encountered:
Seeing this exact same behaviour too after switching to php7.
It's definitely a rollbar related problem because when rollbar is not enabled everything works as expected.
I'm using rollbar with great success but today I've noticed something that bothers me.
My code is using exception to report invalid GET parameters.
In dev, when I call an invalid URL, I get a 500 error and the error is logged by php.
In prod, where rollbar is enabled, I obtain a blank page with a 200 status.
Having a 200 status can be an issue for a number of reasons (for example because it means a search engine could index pages whose URL is invalid).
In my opinion, most people would like the server to return a 5XX status, so it makes sense to implement this in rollbar's
error_handler
.Do you think that's a good idea ?
The text was updated successfully, but these errors were encountered: