For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
18 2 3 8

Case Template Returning to null most of the Times with WCO API AUthentication. -401 Unauthorised Access

HI,

While we try to execute the Casetemplate in our console application with WCO API, most of the times we are faching with 401 Unauthorised access.

less point of times we are able to retrieve the template. we have not changed any headers and request end point and time stamp including HMAC key.

here i am posting the logic and headers of the WCO pilot case template retrieving function.

kindly have a look into this and help me out to resolve this API issue ASAP.

dataToSign=(request-target): get /v1/groups/0a3687cf-63db-14d4-98fb-966e00000135/caseTemplate host: rms-world-check-one-api-pilot.thomsonreuters.com date: Tue, 21 May 2019 08:12:59 GMT

HMAC=Wa/C4OGsQUnGNUibURfTc3vorHlAon35iv03UzDN4KI=

authorisation=Signature keyId="77b33509-XXXXXX1902400XXXX",algorithm="hmac-sha256",headers="(request-target) host date",signature="Wa/C4OGsQUnGNUibURfTc3vorHlAon35iv03UzDN4KI="

please check it and analyse why it has showing n number of times as unauthorised.

@Irfan.Khan Pls look into this.

world-checkworld-check-oneerror-401
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
4.2k 7 5 6

@manjusha.batchu

You are getting a 401 error because of the timestamp being outdated, meaning the date header value that you are sending is incorrect.

Please find the logs for the reported API call below:

[21/May/2019:07:07:50 +0000] "GET/....../v1/groups/0a3687cf-63db-14d4-98fb-966e00000135/caseTemplateHTTP/1.1" 401

We expected the time to be Tue, 21 May 2019 07:07:50 GMT but received

Tue, 21 May 2019 08:12:59 GMT. As the time difference is more than 40 seconds, we returned you a 401.

Kindly make sure that the network settings/server clock or the local machine you are sending your requests from is in sync with NTP or the GMT clock.

icon clock
10 |1500

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

@manjusha.batchu

Kindly let us know if you are still facing the issue.

Click below to post an Idea Post Idea