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 rnana · Dec 22, 2020 at 09:21 AM · world-checkworld-check-oneerror-401angular

(World Check One API) All requests returns 401 Unauthorized when using Angular 10

Hi Dear all,

Can anyone help me to resolve this issue ?. I am using Angular 10 to retrieve data by World Check One API. All requests have been blocked by CORS policy then I disabled security on browser (for testing purposes) and requests are returning error 401.

Note that in postman, all requests passed.


Looking forward any suggestions. Thanks in advance for your help.


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.

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Mehran Khan · Dec 23, 2020 at 05:38 AM

@rnana

Hi,

I checked the logs to see if the request is hitting our servers and I can confirm that the last request that hit our servers from your keys was on 21st December and the 401 that you observed yesterday didn't reach our servers.

we suspect there is still an issue with the CORS on your side which may be blocking certain requests, can you check the code for any CORS issue?

Also, I would like you to hit a request bin target whose details I will send across via email so that I can capture all the details about the request that you're sending to check if there are any issues.

Email to follow.

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.

avatar image
REFINITIV
Answer by Mehran Khan · Dec 22, 2020 at 11:22 AM

@rnana

Can you share the complete request and response header of the failed API call so that we can investigate it further?

401 errors occur because the request has failed an authorization check. This can happen for a variety of reasons, such as

  • An invalid or expired API key,
  • An invalid HMAC signature.
  • Request timing issue/problem with the Date header value. You should ensure a correctly synchronized clock is used to generate request timestamps.
  • Incorrect JSON payload formation at your end that can cause 401 response.


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.

avatar image
Answer by rnana · Dec 22, 2020 at 12:51 PM

@Mehran Khan thanks for your response.

API_KEY_VALUE and API_KEY_VALUE are replaced by their value. these ones are hidden here for security reasons.


services.png (37.5 KiB)
erreur-401.png (31.4 KiB)
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.

avatar image
Answer by rnana · Dec 22, 2020 at 03:17 PM

@Mehran Khan

Kindly find some screenshots: request and response header


header.png (37.7 KiB)
header-2.png (33.7 KiB)
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 >
13 People are following this question.

Related Questions

401 Unauthorized error when using C# HttpClient

401 Unauthorized when calling /groups with GET (using RestTemplate) for World Check API

"cases/{ {case-system-id}}/screeningRequest" is not updating case results when called again after case update request

SEQ-screen-sync-simple: Perform Synchronous Screening: Simple 401 Unauthorized.

Unauthorized 401 when calling /cases with POST

  • 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
  • FX Venues
    • FX Trading – RFQ Maker
  • 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
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges