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


Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

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


Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    @julien.granger

    Please reshare the screentshots.

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



  • Here you go

    screenshot-2024-10-07-085843.png

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @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)


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

  • Jirapongse
    Jirapongse ✭✭✭✭✭

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

  • 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