function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
daniel_hdaniel_h 

REST Callout Occasionally Returns 400 error

I've been working on the Box REST API in Apex. I have run into a problem where occasionally I get a response of 400 Bad Request. If I retry the call, it works, but this isn't a good solution as some of my callouts run in batch and I can't have more than one callout. I posted on the Box developer forum and they think it is a problem with Salesforce (http://forum.developers.box.net/box_developers/topics/salesforce_callout_getting_frequent_response_400_bad_request). Has anybody else run into a similar issue? Could it be a bug with Salesforce?