alyx icon indicating copy to clipboard operation
alyx copied to clipboard

Session gets created in db even when request error response

Open luiztauffer opened this issue 4 years ago • 0 comments

Reporting what I believe is a bug: when trying to POST a new session (on a python script), I passed a dictionary like this in the data field of the request: data = { "subject": "subject2"}

This returns a HTTP error, and that’s because I was missing the users list. However, the Session gets created in the database, with an empty list of users!

Now, is that the expected behavior? If I get a http error from my POST request, I wouldn’t expect the POST to be successful.

luiztauffer avatar Apr 15 '20 07:04 luiztauffer