Hi Rob,
You might be interested to know that TM1, as of version 11.8.0, has implemented support for the newer OData v4.01 async response format as mentioned here:
https://docs.oasis-open.org/odata/new-in-odata/v4.01/cn04/new-in-odata-v4.01-cn04.html#_Toc21700018.The updated, v4.01, specification for Asynchronous Requests can be found here:
http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#_Toc31359016.Long story short: whereas today you'll have to allow application/http as an acceptable content-type, denying application/http explicitly, while allowing the type returned by the request presumably (typically application/json, although I don't think we explicitly verify that), you will get this new style response in which makes processing it, other than having to look at the AsyncResult header, the same as processing the response as if they request had not been executed asynchronously.
------------------------------
Hubert Heijkers
------------------------------
Original Message:
Sent: Tue February 02, 2021 05:53 PM
From: Robert Gordy
Subject: ExecuteWithReturn asynchronously?
Ryan,
I reviewed the Python code and saw how they handle the Async calls. My plan is to modify my code to do something very similar. In the meantime, I was using Postman to test this out, and that's where I was getting the 404 error. I'm going to give up on this for the day and hope that I'll get over the finish line tomorrow. I'll keep you posted.
Thanks again for your assistance.
Rob
------------------------------
Robert Gordy
Original Message:
Sent: Tue February 02, 2021 05:11 PM
From: Ryan Clapp
Subject: ExecuteWithReturn asynchronously?
Original Message:
Sent: 2/2/2021 5:00:00 PM
From: Robert Gordy
Subject: RE: ExecuteWithReturn asynchronously?
Stuart and Ryan,
I had a typo in my GET URL. I'm getting a response w/the GET call to the Location URL, but it's a 404 (Resource Not Found) response. The body says:
{ "error": { "code": "278", "message": "Resource '/api/v1/_async('DQ3KBBAALDEiJxFi6Zt-cG044TciLA')' not found" } }
Again, any help would be appreciated.
Regards,
Rob
#PlanningAnalyticswithWatson