-
-
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
Server error when throw exception in beforeSave hook #5063
Comments
What version of node are you using? And why is your stacktrace riddled with regenerator runtime calls? |
@flovilmart node version is This is my gulpfile:
I'm using |
@reallyimeric this is working fine in our tests: https://github.com/parse-community/parse-server/blob/803c6d2/spec/CloudCode.spec.js#L54 Both on node 8 and node 10. You should probably not use |
my bad, this is actually yielding the same issue as yours, use |
I have submitted a pr. By the way, |
This should be resolved with your fix no? Depending on the type inside the rejection. If you don’t pass anything, then it’s probably what you’re experiencing. Do you happen to have logs for this? |
Yes it was. I have not digged into that before. |
Hi Guys I have the same issue, Thanks @reallyimeric for the fix. |
fixed by #5064 |
Issue Description
I tried to abort a save action in
beforeSave
hook, following instruction, and got http 500 for this request.Steps to reproduce
then update a
Master
object using the dashboard or js client.Expected Results
client got an error with message
cya
.Actual Outcome
client got body
{"code":1,"message":"Internal server error."}
with http code 500.After that client tried 4 more times and then gave up.
Environment Setup
Server
Database
Logs/Trace
The text was updated successfully, but these errors were encountered: