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
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" }
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.
Thanks
I posted another question, https://community.developers.refinitiv.com/questions/50597/connection-actively-refused-12700136036-1.html
Now I'm waiting for reply.