-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Returning undefined in cloud code throws error #5053
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
Comments
We've discussed this here: |
@SebC99 PR? @flovilmart is forcing return null ok? |
@dplewis there was no real consensus on the solution and on the impact on SDKs:
|
Do we need to address that? Or we’re bikeshedding for nothin? I have no trouble considering |
The rest api returns We can at least get rid of the unhandled rejection with a catch https://github.com/parse-community/Parse-SDK-JS/blob/master/src/Cloud.js#L129 |
Uhm ok. On iOS can you show me the equivalent code? |
alright, that kinda sucks, as in iOS it ends up being let's support it on the JS SDK. |
Closed via parse-community/Parse-SDK-JS#682 |
Issue Description
Similar to parse-community/Parse-SDK-JS#417
Steps to reproduce
Expected Results
return undefined / null
not throw error
Actual Outcome
Unhandled Promise Rejection: Error: The server returned an invalid response.
Environment Setup
Server
Database
Logs/Trace
The text was updated successfully, but these errors were encountered: