Can you troubleshoot my Python API connection error 502?

This is my code (running it locally):

import pandas as pd
import numpy as np

import pandas as pd
import numpy as np
import requests
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
import refinitiv.dataplatform.eikon as ek

import requests

ek.set_app_key('key')

df, err = ek.get_data(['PEUP.PA','EUR=', 'JPY='], [ 'BID','ASK'])
df

This is the error massage:

error-massage.png


Thank you very much in advance!

Best Answer

  • Jirapongse
    Answer ✓

    @levente.letenyei

    It should be from your proxy server.

    1687341675172.png

    When connecting to the localhost (127.0.0.1), it shouldn't use a proxy. You may need to contact your IT support team to verify the proxy settings.

Answers