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

Data not being updated when POST request sent along with UID #27

Open
Perseus opened this issue Jul 12, 2018 · 1 comment
Open

Data not being updated when POST request sent along with UID #27

Perseus opened this issue Jul 12, 2018 · 1 comment

Comments

@Perseus
Copy link

Perseus commented Jul 12, 2018

Steps to reproduce

Send a POST request with updated data to a URL which includes the ID
I tried to make the following URLs work:

http://localhost:8080/senaite/@@API/senaite/v1/laboratory/update/3a07aeeed03c4adeb2cafda9a4ea7854

http://localhost:8080/senaite/@@API/senaite/v1/update/3a07aeeed03c4adeb2cafda9a4ea7854

3a07aeeed03c4adeb2cafda9a4ea7854 being the UID of the laboratory object. I was attempting to update the laboratory information

Current behavior

Data isn't updated at all while trying to send data using form-data.
Data is updated when using raw json but an error "NoneType object has no attribute get" is shown

Expected behavior

Data gets updated according to the data sent in the POST request

Screenshot (optional)

image

image

As you can see in the above image, the data doesn't change.

Now, if I try to do the same as a raw request, with json only :
image

image

It updates

@aethelwulffe
Copy link

transfer-encoding = chunked in heading?

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

No branches or pull requests

2 participants