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

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

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

Answers