401 when calling get groups

Hi,

I am not sure what I have set up wrong, I can't do a get groups request from C#. I am able to do lots of different requests and they are all working (using static groupId) through C#. I can execute SEQ-pre-groups in Native Postman without any issue.

I am getting error "Returned The underlying connection was closed: An unexpected error occurred on a send"

dataToSign:

(request-target): get /v2/groups

host: api-worldcheck.refinitiv.com

date: Tue, 25 Jan 2022 23:46:53 GMT


hmac:

SZV1NYhX8FclvsJ12P+WuZzpvLZfmn9Qz7FPnX4ihmg=


authorisation:

Signature keyId="76488866-b414-499d-a4f4-628e7bf03857",algorithm="hmac-sha256",headers="(request-target) host date",signature="SZV1NYhX8FclvsJ12P+WuZzpvLZfmn9Qz7FPnX4ihmg="


requestEndPoint:

https://api-worldcheck.refinitiv.com/v2/groups


I used Postman to check my hmac with the provided time in C# code, it is correct. I have checked my time against https://time.is/, it is also exact. I have checked every single letter against postman pre-request Script but I can't find any mistake.

Do you see what is wrong with my C# request?

Thanks,
Cady

Best Answer

  • Mehran Khan
    Answer ✓

    Hi @cadyh ,


    Please try the code sample that I have sent via email and let me know if that works, it has the latest endpoint details updated on the code.


    If you still face issues we can get on a quick call and take a look at it.

Answers