401 Unauthorized response when calling HTTPGET /v1/groups

Hi
Im receiving a 401 Unauthorized response when calling rms-world-check-one-api.thomsonreuters.com/v1/groups.
Error Message : Server returned HTTP response code: 401 for URL: https://rms-world-check-one-api-pilot.thomsonreuters.com/v1/groups
Signature Data: (request-target): get /v1/groups
host: rms-world-check-one-api.thomsonreuters.com
date: Thu, Aug 29 2019 11:47:41 GMT
content-type: application/json
content-length: 0
API Key : 4be34ac5-ca04-4a16-83fe-1f130c0f12ba
Best Answer
-
And finally, ended up being the least obvious issue ... THE ENDPOINT!!!!
0
Answers
-
Had another read through the documentation ...
Few findings :
- I was using the API_KEY to GenerateHMAC, Ive updated it to now use the API_SECRET.
- Signature data to sign now looks like this :
(request-target): get /v1/groups host: rms-world-check-one-api.thomsonreuters.com date: Thu, 29 Aug 2019 11:34:24 GMT - I can confirm that the signed data values are correct.
- Hex : D6FEE14572F164A8040D5677CC15775F9930DF1B8EF804F47A845D52D68C29BF
- Base64 : 1v7hRXLxZKgEDVZ3zBV3X5kw3xuO+AT0eoRdUtaMKb8=
- Headers :
- Authorization - Signature keyId="4be34ac5-ca04-4a16-83fe-1f130c0f12ba",algorithm="hmac-sha256",headers="(request-target) host date",signature="1v7hRXLxZKgEDVZ3zBV3X5kw3xuO+AT0eoRdUtaMKb8="
- Date - Thu, 29 Aug 2019 11:34:24 GMT
However, the issue still persists : Server returned HTTP response code: 401 for URL: https://rms-world-check-one-api-pilot.thomsonreuters.com/v1/groups
0 -
I am marking this question as private since your API key may get exposed if we keep this public,
401 errors
occur because the request has failed an authorization check. This can happen
for a variety of reasons, such asa) An invalid or
expired API key - I see that your API key is correctb)An invalid HMAC signature.
c) Request timing
issue/problem with the Date header value. The API client should ensure a
correctly synchronized clock is used to generate request timestamps.d)Incorrect JSON payload formation at the customer’s end that
can cause them to observe 401 response.Can you provide us the complete request and response to investigate this further? you can probably try to repplicate this issue on postman and provide me the postman console log, please make sure to turn on the postman console logs by clicking Alt+Ctrl+C and then fire the request.
Look forward to the details.
0 -
Saw your recent comment now with the details, let me investigate this further and get back to you shortly.
Thanks
0 -
Hi Mehran, found the issue, see comment below. Thanks
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 614 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 641 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 89 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛