-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Transactions enabled by default on REST requests #6019
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
The transaction should only be opened when using the |
Hi @davimacedo , thanks for your quick response and investigation. I tried to set I'll need to investigate more on my side before coming back to you with a test case or specific scenario. Thanks again for your time |
Hi again @davimacedo, quick update on this issue. After detaching my mLab addon, then attach a fresh one (with the same config) and restoring the previous DB, this error finally came up:
Then obviously adding the query param (and #5983) solve it. I don't know what caused the issue in the first place though. Anyway, now everything is working fine, thanks! |
Issue Description
I updated parse-server to the 3.8.0 release (which include a newest addition of transactions).
I found that transactions are enabled by default when performing a REST request (either from the JS client, parse-dashboard, or a simple POSTMAN), without using the
transaction: true
parameter in the payload.Although, cloud-code seem to work as expected, as I am still able to perform operations.
Regarding this I have several questions:
Steps to reproduce
Perform a PUT query on whatever object (with or without MasterKey)
Example with a session token:
Expected Results
To update object's attribute with corresponding value.
Actual Outcome
Instead, I have a status 500 response with this body:
And this error server-side:
Environment Setup
Server
Database
Logs/Trace
The text was updated successfully, but these errors were encountered: