question

Upvotes
Accepted
19 2 0 6

Problem with Postman Raw Report (Tuto 8b)

Hi, I am giving a support for a client which is having problem using TH to retrieve a raw report.

In order to understand the problem, I tried to use the samples for Postman.

When I Execute tuto-8a, the answer is '202 Accepted'. The 'location' field response for one request I have just executed (May 24th) is "https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x05baedbb261b2f86')".

Then I insert the ID '0x05baedbb261b2f86' into the environment variable 'location' as "https://hosted.datascopeapi.reuters.com/RestApi/v1/monitor/'0x05baedbb261b2f86'" and run the "Tuto-8b".

But the answer is:

{ "error": { "message": "System.InvalidOperationException: Job \"0x05baedbb261b2f86\" has a JobType of \"<null>\" which cannot be found\r\n at ThomsonReuters.Dss.Core.Jobs.AsyncJobFactory.CreateAsyncJob(String jobId)

Looking at the 'Executing Jobs' of the TRTH account I see that there are a lot of "Pending Jobs", so it looks like something do went wrong with the request.

Somebody has an idea of what went wrong? If this is not the right place for posting this question, please let me know who can I contact.

Thanks a lot!

tick-history-rest-apipostman
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
13.7k 27 8 12

@Henrique Hissataka

The location URL returned by the server after the request was submitted (in Tuto 8a) must be used as is to check the status of the request (in Tuto 8b).

In other words, copy the entire URL into the environment variable location, that way it will do a GET on

https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x05baedbb261b2f86')

and it should work fine.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
19 2 0 6

Yes, that did the trick!

But I was following what the User Guide V1.0 (page 53) is specifying, maybe a revision of that would be in order...

Thanks a lot for helping me with this question.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.