cannot run API in python

capture.pngHi,


I can run RIC in both eikon desktop and Eikon add-in. But cannot run it in python.


It kept running without any outputs.


see screenshot

regards,

ray


Best Answer

  • umer.nalla
    umer.nalla LSEG
    Answer ✓

    Hi @rayr.hou

    Thanks for getting back with the above details.

    Based on the error message, this is the same scenario as reported and diagnosed prevoiusly in Trying to execute code from CODEBOOK to a python file, ERROR "Your request is prohibited because the request is on loopback from external IP." - Forum | Refinitiv Developer Community

    As explained by my colleague @Alex Putkov.1 in the above post,

    What's happening is that, even though the HTTP request is directed to the localhost, your HTTP proxy intercepts it. After intercepting the request the proxy returns the request to your machine, but now to Eikon API Proxy the request appears as coming from a remote machine (as it comes from the IP address of the HTTP proxy). Eikon API Proxy rejects the request with the error message that you've seen because it only allows the requests coming from the same machine.

    Therefore, you will need to speak to your internal network team/security team to configure your proxy settings to allow HTTP requests directed to the localhost to not be intercepted by your HTTP proxy.

    If they need assistance with doing this, I recommend they contact the Refinitiv Eikon Helpdesk - which can be done directly from within Eikon OR via My.Refinitiv

Answers