Find your content:

Search form

You are here

Javascript Remoting Timeout

 
Share

We have a group of employees at a remote site who recently began experiencing problem with timeouts with Javascript remoting. When I test the page from our main office (or my house), it works fine. Could this be due to something strange with the internet or network at that remote site?

Currently the timeout is set to 30 seconds. I am going to try and increase it to the maximum and see if that helps.

Has anyone else seen timeouts from one location and not another? Any tips on troubleshooting or corrective action to take?


Attribution to: Daniel Hoechst

Possible Suggestion/Solution #1

After some troubleshooting today, it turns out the location was a red herring. The problem was that my remoting call was calling a method that did a call out to another system. The javascript remoting timeout was shorter than the callout from Apex. The users with the problem were requesting data that took a long time to retrieve. When we tested, the callout has already been done once and the web service had cached the response so a second try was much faster.

Moral to this story: when mixing Javascript Remoting with callouts, check your timeout values closely and make sure the web service you are calling can handle the load.


Attribution to: Daniel Hoechst
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/31843

My Block Status

My Block Content