401 Unauthorized for Get group

I tried to make the request to get group id, but it fails in postman too. Please refer the postman logs

GET https://rms-world-check-one-api-pilot.thomsonreuters.com/v2/groups

Request Headers

Date: Mon, 07 Sep 2020 11:11:18 GMTAuthorization: Signature keyId="XXXXXXXXXXXX",algorithm="hmac-sha256",headers="(request-target) host date",signature="+LR0pfmFM3ItprAXi/U5U0QeIfSgOX7djiuQY048gXM="User-Agent: PostmanRuntime/7.26.3Accept: */*Postman-Token: 7b0c2988-6d4c-4dd0-9583-696eb89ef162Host: rms-world-check-one-api-pilot.thomsonreuters.comAccept-Encoding: gzip, deflate, brConnection: keep-alive

Response Headers

Strict-Transport-Security: max-age=15552000, includeSubdomainsAuthorization: WWW-Authenticate: Signature realm="World-Check One API",algorithm="hmac-sha256",headers="(request-target) host date content-type content-length"Transfer-Encoding: chunkedDate: Mon, 07 Sep 2020 11:09:39 GMT



Best Answer

  • @Raheel.saddiqui,

    Thank you for your query.

    Can you please adjust your system clock to the NTP and try again? The time difference between your system time and World-Check is more than 30 seconds - So you are receiving the error.

    Request headers time stamp -

    Date: Mon, 07 Sep 2020 11:11:18 GMT

    Response timestamp -

    Mon, 07 Sep 2020 11:09:39 GMT

    Hope this helps.


Answers

  • Whether its possible to get the NTP time before making request.

  • @Raheel.saddiqui,

    I am afraid, it is not possible to get the NTP timestamp before making a request. You may however sync the clock to the internet time and make sure that the system time is not more than 30 seconds when compared to the response time. That should resolve the issue.

    Hope this helps.