Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by cam.stothard · Oct 18, 2019 at 01:34 AM · eikon data api

Failed to get access token 502

Hello

I'm a Python developer and I tried timeSeries.py in https://developers.refinitiv.com/system/files/QuickStart_0.zip

I used my email and password for USERNAME and PASSWORD, and same as CLIENT_ID and CLIENT_SECRET.

Now I got exception that says "Failed to get access token 502 - {"error":"server_error" } ".

Please let me know how can I solve this problem.

Thanks

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.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by wasin.waeosri · Oct 18, 2019 at 04:07 AM

Hello @cam.stothard

Did you set a correct Client_ID in edpToken.py file? You can generate you Client_ID (which is the App Key) in App Key Generator page (your EDP username and password are required to access the page).


I can replicate the same error message by setting the Client_ID to be same value as my EDP username (email).

My code:

USERNAME = "myemail@email.com"
PASSWORD = "mypassword1234"
CLIENT_ID = "myemail@email.com"

My error:

File "D:\Project\SRs\AHS_50578\QuickStart\edpToken.py", line 60, in _requestNewToken
    "Failed to get access token {0} - {1}".format(response.status_code, response.text))
Exception: Failed to get access token 502 - {"error":"server_error"   }

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 chavalit.jintamalit · Oct 18, 2019 at 03:02 AM

Hi @cam.stothard

I would like to clarify you are using "Enterprise Data Platform (EDP)" API or "Eikon Data APIs"?

The example in your post is for EDP however your question posted in the Eikon Data APIs section.

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 cam.stothard · Oct 18, 2019 at 04:31 AM

Thanks

I posted another question, https://community.developers.refinitiv.com/questions/50597/connection-actively-refused-12700136036-1.html

Now I'm waiting for reply.

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

ID type being used for TR.ISIN or TR.ISINcode

Jupyter Notebook not connecting to Eikon Data API

Eikon Data API Error "Asynchronous Query library internal error"

How can i make a distinction between remind news and others when i using EIKON DATA API(get_news_headlines)?

Data fields for the Eikon streaming API

  • 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