Eikon API|Error code 403 | Client Error: Target service not allowed

Hi,

I'm trying to connect the local Eikon API Proxy through our local hosted Anaconda Jupyter NB/Labs.

So far, the I've done all the steps listed in throubleshooting catalog:

The proxy is up and running on localhost.

Your assistance is much appreciated.

BR...

All in all I can use the generated APPkey in Eikons nativ "Workspace". When trying to use the same code cells (and Library) i get the following error massage:

Error code 403 | Client Error: Target service not allowed - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>The requested URL could not be retrieved</title>
<link href="http://passthrough.fw-notify.net/static/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://passthrough.fw-notify.net/static/default.js"></script> cells (and Library) i get the following error massage:


Best Answer

  • aramyan.h
    Answer ✓

    According to this guide "Error code 403 | Client Error: Target service not allowed" error code suggests that you are not permissioned to access Eikon Data API. So you would need to contact your Account manager to get the access.

    In the meantime as suggested in this thread as well, you can consider using Codebook (cloud-hosted Jupyter notebook within Eikon Desktop/Refinitiv Workspace).

    Type in "CODEBK" in the Eikon Desktop/Refinitiv Workspace search bar and press enter to launch the app.


    Hope this help.

    Best regard,

    Haykaz

Answers

  • HI @Th.Th ,


    Thank you for your question. Could you please share the code here which is producing the issue? Additionally, I have found this and this threads, which suggest contacting the account manager to sort it out.


    Best regards,

    Haykaz

  • Hi Haykaz,

    sure, thank you for your prompt response:

    import refinitiv.data.eikon as ek

    ek.set_app_key('05-------------------------------b')

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

    ... as you can see it's my first try to establish an connection.

    BR

  • plus: the messages of the proxy links:
    http://127.0.0.1:9060/api/status

    {"statusCode":"ST_PROXY_READY","version":"3.5.4-eikon4"}

    http://127.0.0.1:9060/api/

    {"code":500,"message":"Cannot find module \".\"","statusMessage":"Internal Server Error"}
  • Hi @Th.Th

    Can you try to access the http://localhost:9060/api/status URL via a web browser?

    proxy.png

    I noticed the "http://passthrough.fw-notify.net/static/XXXX" in the error message which is most likely to be related to your corporate firewall/proxy server. You may need to contact your IT support team to verify the firewall/proxy settings.

    Another troubleshooting guide that should be helpful is the Eikon Data API and Refinitiv Data Library - Troubleshooting article.

  • Hi Haykaz,

    ok, if i understand you correct I'm allowed to use the Workspace but not the Python API via local Proxy.

    Regarding the firewall: Could you tell me the ports that has to be permissioned for accessing the service?

    Many Thanks...

  • that's right, that's what I have concluded from the error code. However, I would suggest going through the path that my colleague suggested as it might be a firewall issue. In any case you should be able to access the data via Codebook while this is sorted out
  • ok, my colleages already asked for the ports and didn't get an answer. our security policy requires an explict list of ports
  • Hi @Th.Th

    Based on the Eikon Data API and Refinitiv Data Library - Troubleshooting article, the API proxy uses ports 9000 and 9060 on the local machine by default.