Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
icon clock
10 |1500

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

Hello @cam.stothard

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


Upvotes
Accepted
24.7k 54 17 14

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 512.0 KiB each and 1.0 MiB total.

Upvotes
18.2k 21 13 21

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 512.0 KiB each and 1.0 MiB total.

Upvotes
1 1 1 1
icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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