Skip to content
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

Session gets created in db even when request error response #634

Open
luiztauffer opened this issue Apr 15, 2020 · 0 comments
Open

Session gets created in db even when request error response #634

luiztauffer opened this issue Apr 15, 2020 · 0 comments

Comments

@luiztauffer
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant