alyx
alyx copied to clipboard
Session gets created in db even when request error response
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.