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
Eyal Kama 4Eyal Kama 4 

timeout

I am on a Professional instance with API enabled. When I call a remote site using the Ajax Toolkit I am getting timeout errors for calls longer than 10 sec. I tried to set the timeout and the async params but it did not help to solve the problem.

 sforce.connection.remoteFunction({ 
                    url : endpoint_url, 
                    onSuccess : function(response) { callback_success(response);},
                    onFailure : function(response) { callback_failure(response);},  
                    method : "POST",
                    requestHeaders : {"Content-Type":"application/json", "charset":"utf-8"},
                    requestData : reqJSON,
                    timeout : 60000,
                    async : true
                });
any idea on how to extend the waiting time beyond the 10 sec?
_Prasu__Prasu_
By any chance are you trying to call WCF service? In that case I believe you will need to configure server side timeout.