You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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 :
It updates
The text was updated successfully, but these errors were encountered:
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)
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](https://user-images.githubusercontent.com/6716458/42619968-2abdd7f8-85d7-11e8-9d92-72ece381e97f.png)
It updates
The text was updated successfully, but these errors were encountered: