-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
Internal server error on set followed by unset #1798
Comments
Thanks for opening this issue!
|
Nice find! Do you want to open a PR? This may well be a Parse JS SDK issue rather than a Parse Server issue, if the SDK doesn't handle this set / unset properly. Did you look at what the SDK sends to the server? |
I have verified that the SDK sends a malformed request to the server, so this is an SDK issue. |
Great, would you want to open a PR with a failing test? |
@mstniy Do you have any more infos on this issue? Otherwise I'll transfer it to the Parse JS SDK. |
I am afraid not, @mtrezza . Feel free to transfer the issue. We ended up working around it. |
Thanks for opening this issue!
|
Steps to reproduce Above code gives internal server error because of conflict. MY Solution: Here's how you can resolve it: Solution 1: Use Separate Saves Explanation @mtrezza Please review it once:) |
@harshbhar0629 Good analysis, I think we may have 2 issues here:
Would you want to write a fix? You could start with a PR that contains the code example you posted above to demonstrate the issue. |
I will try to fix that issue Sir:) |
@harshbhar0629 I didn't notice but we already have an open PR with #2117. Please see the discussion there and feel free to pick up from there, as the PR seems to have gone stale. |
New Issue Checklist
Issue Description
Setting a subdocument entirely, followed by an
unset
of a nested field causes an internal server error while the object is being saved, if the object existed beforehand.Steps to reproduce
Actual Outcome
Expected Outcome
The object should be saved to the database with data =
{}
Environment
Server
5.3.0
ubuntu 20.04
local
Database
MongoDB
5.0.13
local
Client
parse dashboard
4.1.4
Logs
The text was updated successfully, but these errors were encountered: