For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 1

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

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

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

Upvotes
Accepted
11.5k 16 7 10

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"   }

icon clock
10 |1500

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

Upvotes
18k 21 12 20

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.

icon clock
10 |1500

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

Upvotes
1 0 0 1
icon clock
10 |1500

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

Click below to post an Idea Post Idea