question

Upvotes
16 0 0 3

Port number was not identified, cannot send any request

Hi, Trying to get data via Eikon via python and getting the error:


2024-10-06 14:46:06,684 P[16028] [MainThread 17836] Error on handshake url http://127.0.0.1:9060/api/handshake : ReadTimeout('')
2024-10-06 14:46:06,685 P[16028] [MainThread 17836] Port number was not identified, cannot send any request
2024-10-06 14:48:06,719 P[16028] [MainThread 17836] Eikon Proxy not running or cannot be reached. Please read the documentation on troubleshooting




I did read https://developers.lseg.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv

And went through all of Section 1.1 - screenshots below; don't know what to do after that; any advice?


Thank you

1728245687852.png



1728245693683.png


1728245698711.png


#technologypython api
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.

@julien.granger

Please reshare the screentshots.

Upvotes
16 0 0 3

screenshot-2024-10-07-085538.pngscreenshot-2024-10-07-085553.pngHere you go




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
16 0 0 3

Here you go

screenshot-2024-10-07-085843.png


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.

Upvote
86.8k 294 53 79

@julien.granger

Thank you for reaching out to us.

According to the screenshots, the API proxy is running properly.

The error is ReadTimeout('') which could be the Python or network issue.

Please run the following Python code to verify what the problem is.

import requests
body = {
"AppKey": "<App Key>",
"AppScope": "rapi",
"ApiVersion": "1",
"LibraryName": "Eikon Python Library",
"LibraryVersion": "1.1.18"
}
r = requests.post(url="http://127.0.0.1:9060/api/handshake",
headers={"Host":"127.0.0.1","Content-Type": "application/json"},
json=body)
print(r)
print("HANDSHAKE:\n", r.text)


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
16 0 0 3

Please see attachedscreenshot-2024-10-09-123212.jpg


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
86.8k 294 53 79

@julien.granger

Thank you for sharing the screenshot.

Please make sure 9060 is the correct TCP port used by the API Proxy. You can check it from the SxS log or the http://127.0.0.1:9060/api/status.

If the TCP port (9060) is correct and the requests library can't connect to that endpoint, this should not be the problem in the Eikon Data API. You need to verify the network settings or the API Proxy.

You can check the APIProxy log. The request should be recorded in the APIProxy log file.

1728528178690.png

You can also contact the Eikon support team via MyAccount to verify the settings.


1728528178690.png (31.5 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
16 0 0 3

I am attaching the APIProxy file for your review. I do not find the code you have highlighted in red.APIProxy.20241010.100802000.p16024.txt

Also here is the screenshot of the URL you mention1728573691994.png


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
16 0 0 3

Hello, any update on this? Please contact me at julien.granger@shell.com // +1-716-907-2115.

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
86.8k 294 53 79

@julien.granger

If the requests library can't connect to that endpoint, this should not be the problem in the Eikon Data API. You need to verify the network settings or the API Proxy.

I checked the APIProxy log and couldn't find the incoming request log for the handshake request.

This could indicate that the API Proxy didn't receive the request.

You may need to contact your local IT support team to verify the proxy settings and security or network policies.

Otherwise, you can also contact the Eikon support team directly via MyAccount to verify the settings.


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.