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.
Open php.ini file located under php installation folder.
Search for extension=php_openssl.dll.
Uncomment it by removing the semi-colon(;) in front of it.
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.
I tried below -
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.