PHP Classes

Class hanging when Salesforce returns 204

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement PHP ...  >  All threads  >  Class hanging when Salesforce...  >  (Un) Subscribe thread alerts  
Subject:Class hanging when Salesforce...
Summary:Class hanging when Salesforce returns 204
Messages:3
Author:Simon Cast
Date:2015-01-25 10:47:38
 

  1. Class hanging when Salesforce...   Reply   Report abuse  
Picture of Simon Cast Simon Cast - 2015-01-25 10:47:38
When you do a PATCH to update an existing record, Salesforce returns a 204 with no content. However, the class sits there waiting I suspect for some content.

Is there a way to set the class to continue if it receives a 204?

  2. Re: Class hanging when Salesforce...   Reply   Report abuse  
Picture of Simon Cast Simon Cast - 2015-01-25 11:02:34 - In reply to message 1 from Simon Cast
Ok so really simple fix. Update to the latest HTTPClient.php library.

  3. Re: Class hanging when Salesforce...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-01-25 17:24:51 - In reply to message 2 from Simon Cast
Yes, that problem was fixed a few months ago.

It is always good to have in the site options page (E-mail and newsletters tab) the option enabled that says "Updated class files alerts". That will allow you to get notices when the classes you download are updated.