OpenSSL SSL_read: Connection reset by peer, errno 104 for getHistoricalData() kiteconnectphp

ajit341ymail
ajit341ymail edited August 2020 in PHP client
Hi,

While I try calling PHP APIs from local machine it is working without any exception, however when I try the same from my cloud server I am getting below error for limited API calls. 80% of call are successful. 20% of API calls are failing in historical data pulling. It's happening for historical data pulling.

The below error is coming randomly for 5mins, 15mins & 1hour historical data pulling.
OpenSSL SSL_read: Connection reset by peer, errno 104

Your suggestion or help will be appreciated. Thanks in advance.
  • sujith
    sujith edited August 2020
    You may refer to this similar SO thread.
  • ajit341ymail
    Dear Sujith, Thank you for your proactive response. Let me try the workaround and let you know the result after try.
  • ajit341ymail
    ajit341ymail edited August 2020
    Update :

    I tried below -
    1. Open php.ini file located under php installation folder.
    2. Search for extension=php_openssl.dll.
    3. Uncomment it by removing the semi-colon(;) in front of it.
    4. Restart the Apache Server.

    There are two type of errors I am getting now -

    OpenSSL SSL_read: Connection reset by peer, errno 104
    OpenSSL SSL_connect: Connection reset by peer in connection to api.kite.trade:443

    for only getHistoricalData() function of kiteconnectphp. Other functions are working fine.

    Pondering fact is : If there is configuration problem then all requests should fail not partial. Surprise is with the same set up some requests failing and some are working fine. Either it should pass all or fail all. This is not helping in troubleshooting.

    Help will be appreciated.
  • rakeshr
    We will try to reproduce this for the getHistoricalData end-point at our end.
Sign In or Register to comment.