Sunday, November 25, 2018

PHP Error/Warning - SSL: Connection reset by peer - SoapFault exception: [HTTP] Error Fetching http headers


User receives the following error/warning while performing a Web Services operation using the PHP Toolkit:

Warning: SoapClient::__doRequest(): SSL: Connection reset by peer in /var/www/internal/includes/netsuite_PHPtoolkit.php on line 1637
<p>Exception on searchCustomRecord: SoapFault exception: [HTTP] Error Fetching http headers in...


This can be caused by a slow request. One possible way that may correct this, modify the php.ini file and set the defaultsockettimeout value from 60 to 120.

No comments:

Post a Comment