Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Screening /
  • World-Check One /

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

Overview |  Quickstart |  Documentation |  Downloads

avatar image
Question by giovanni.parente · Oct 19, 2017 at 05:26 AM · world-checkworld-check-onejavaerror-401

401 when asking for GetMyTopLevelGroups (SEQ-1a) by using Java code

Hi,

we are implementing a Java Client to call the WC Rest service, by following the sample code you provided (PFA the code in attachment). The point is we are obtaining a 401 Unauthorized error message every time we try to send a https://rms-world-check-one-api-pilot.thomsonreuters.com/v1/groups request.

The problem occurs just when we send the request through Java code, it works properly if we send it through Postman (enabling with Postman Interceptor extension).

Is it due to wrong settings of the parameters we send with the request (i.e. apikey, apisecret) ? or something else?

Could you please help us?

Thanks

wcclientjava.txt (2.9 KiB)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

2 Replies

  • Sort: 
avatar image
Best Answer
Answer by giovanni.parente · Oct 20, 2017 at 04:12 AM

I found the solution by myself, and I'd like to share it, maybe it might be useful to someone.

The apikey and apisecret were correct, the problem was related to the Locale I used to generate the Date embedded in the "data to sign" object. I was wrong in generating it in Italian locale, the WC rest service expect the Locale.ENGLISH.

Example:

- expected format: "Thu, 19 Oct 2017 16:12:42 GMT"

- mine was "Gio, 19 Ott 2017 16:12:42 GMT"

Regards

Comment
brian.bourgault

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by brian.bourgault · Oct 20, 2017 at 07:02 AM

Hi @giovanni.parente,

I'm glad you found it, that would have been impossible to find looking at your code, although I did check to see you were using the GMT timezone, your Locale hadn't occurred to me. Perhaps not immediately obvious, what you found, is that the date is a string used in the signature as a string.

My sincere thanks to you for taking the time to post your answer. We'll certainly add your solution to our toolbox of client experience.

Brian

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

Getting 401 Unauthorized when using Feign Framework, not when using HttpRequest Library

Unauthorized 401 when calling /cases with POST

Missing www-authenticate header when receiving 401 responses.

Hey guys , i am getting response 401 ,my code is from http.client import HTTPSConnection from base64 import b64encode #This sets up the https conn response = requests.post(url, auth=requests.auth.HTTPBasicAuth( '****', '****')) #print(response.text)

Sudden 401 error

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges