• Nathanael Padgett
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
We are calling Salesforce's API via PHP on several servers and starting on Wednesday evening (June 15, 2022), those API calls started randomly failing. These scripts have been working for many months (some for years). This is happening not just on our network, I have tested it running on a laptop at a different location entirely separate from our network and requests are still randomly failing. I've seen 50 successes in a row, with some having a 40 second connection attempt (a normal request should take 1-3 seconds), but still succeeding and I've seen it fail two out of every five attempts; and everything inbetween. I've submitted a case but it was cast off as a developer issue several times by SF "support" (LOL). Below are examples of the PHP messages received.

PHP Notice:  SoapClient::__doRequest(): Send of 962 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host in C:\SCRIPT_PATH\soapclient\SforceBaseClient.php on line 514

The SOAP API gives me back the following error text:
• Could not connect to host
• Failed Sending HTTP SOAP request
• Maximum execution time of 300 seconds exceeded
We are calling Salesforce's API via PHP on several servers and starting on Wednesday evening (June 15, 2022), those API calls started randomly failing. These scripts have been working for many months (some for years). This is happening not just on our network, I have tested it running on a laptop at a different location entirely separate from our network and requests are still randomly failing. I've seen 50 successes in a row, with some having a 40 second connection attempt (a normal request should take 1-3 seconds), but still succeeding and I've seen it fail two out of every five attempts; and everything inbetween. I've submitted a case but it was cast off as a developer issue several times by SF "support" (LOL). Below are examples of the PHP messages received.

PHP Notice:  SoapClient::__doRequest(): Send of 962 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host in C:\SCRIPT_PATH\soapclient\SforceBaseClient.php on line 514

The SOAP API gives me back the following error text:
• Could not connect to host
• Failed Sending HTTP SOAP request
• Maximum execution time of 300 seconds exceeded