-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Poor error reporting with parse-server, express and Rollbar #2841
Comments
Maybe actual root cause is: parse-community/Parse-SDK-JS#326 eg https://github.com/ParsePlatform/parse-server/blob/master/src/Routers/UsersRouter.js#L89 |
This seems to fix things up a bit:
|
@alexblack what do you suggest? |
If For us, the code above fixes things up enough. |
I believe the main issue is that we're using the Parse client SDK errors inside the server. If it makes sense to use a new Error type like ParseServer.Error that extends error I would accept that too if that makes sense. Would you like to work on such PR? |
How do we figure out if that makes sense? This doesn't sound like a good first PR for someone like myself, as it probably affects a lot of code. |
That's a replacement at large of all Parse.Error to ParseServer.Error, tedious but not complicated. I don't really have time to work on that for now (I'm trying not to improve the bandwidth for large push sending), and given that you have your workaround, that seems to be OK. |
Yes the workaround works fine. It lacks stack traces that you normally get with JavaScript, but it's not the end of the world |
Yes the workaround works fine. It lacks stack traces that you normally get On Oct 22, 2016 10:27 AM, "Florent Vilmart" [email protected]
|
dupe of #661 |
From what I can tell, parse-server doesn't throw standard Javascript errors, see: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Error
Instead it throws maps like this:
Standard error reporting solutions like AirBrake and Rollbar do not handle these well, making it impossible to find out what actually went wrong.
Instead code like this would work well:
The text was updated successfully, but these errors were encountered: