I have written some GET API’s that work ok using the python library ‘urllib2’.
I’ve just written a POST API, and it is returning HTTP Status 201: Created.
After doing some reading, it seems any HTTP 200 status means the request was successful. So why am i getting an error thrown in Ignition?
As far as i can tell, the request was successful. I created a new item on the server end as expected.
Should I write some “try: except” code to ignore it? I don’t really want to do that without understanding why it is making an error.
Sorry I’m not hugely familiar with the HTTP web space.