Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRKD /
avatar image
Question by RG1 · Sep 01, 2020 at 04:04 PM · rkd

HTTP error 443 with RKD python API trying to authenticate

Hello,

I'm getting the following error

HTTPSConnectionPool(host='api.rkd.refinitiv.com', port=443): Max retries exceeded with url: /api/TokenManagement/TokenManagement.svc/REST/Anonymous/TokenManagement_1/CreateServiceToken_1 (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f133695b748>: Failed to establish a new connection: [Errno -2] Name or service not known'))


when trying to authenticate , following https://developers.refinitiv.com/thomson-reuters-knowledge-direct-trkd/thomson-reuters-knowledge-direct-api-trkd-api/learning , https://github.com/Refinitiv-API-Samples/Example.TRKD.Python.HTTPJSON/blob/master/trkd_authen.py with my new credentials.

The exception is raised on the very first attempt, obviously 'max retries' is not a cause.

What could be the reason, please?

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
REFINITIV
Best Answer
Answer by Gurpreet · Sep 01, 2020 at 05:09 PM

Hello @RG1,

The number 443 is not the error, but rather the port number that your application has to connect to (HTTPS).

I just tried the sample and can confirm that the code and the endpoints are correct and was able to successfully get an access token. From the error message it looks like that your application does not have a network route to api.rkd.refinitiv.com. Can you please confirm that you are indeed able to reach this URL?

It might be easier to use a network took like CURL and see if there is a connection:

curl -X POST https://api.rkd.refinitiv.com/api/TokenManagement/TokenManagement.svc/REST/Anonymous/TokenManagement_1/CreateServiceToken_1 -H "content-type: application/json;charset=utf-8" -d '{"CreateServiceToken_Request_1": { "ApplicationID": "****", "Username": "****", "Password": "*****" }}'

If you are unable to connect, please contact your network team to figure out firewall/proxy information.

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 RG1 · Sep 01, 2020 at 10:10 PM

Thank you. Yes, indeed i get "Couldn't resolve host 'api.rkd.refinitiv.com' with curl. Apologies for incorrectly formed question.


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 >
9 People are following this question.

Related Questions

get data using API in python

Facing issue while implementing RKD JSON Application with

parse RKD fundamental api data from json to pandas dataframe

How to connect to Refinitiv top news API

How to get "Company ID Type" for a given company code

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges