Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 0

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:


eikon-data-api#producterror-403
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@Th.Th

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


Upvote
Accepted
5k 16 2 7

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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
5k 16 2 7

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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 0

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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 0

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"}
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
24.7k 54 17 14

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.


proxy.png (12.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 0

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...

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

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
Upvotes
24.7k 54 17 14

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.