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
Sylvia Gise 7Sylvia Gise 7 

Intermittently receiving: An internal server error has occurred after successful asynch callout

Receiving this error using basics of force.com application includng VF page, Apex Controller class, VF components (which contain addiitional components). Approximately 70% of the time the call is successful the rest of the time the error is received. Specific call is an Apex ActionFunction with a REST based web service call.
Complete error displayed: An internal server error has occurred An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be useful in producing or correcting the error, please contact Salesforce Support. Please indicate that URL of the page you were requesting, any error on the page as well as any other related information. We apologize for the inconvenience. Error ID: 819438129-231215 (-1412509758)
Gordon EngelGordon Engel
The exception refers to java.io.NotSerializableException, and seems to be related to something on the Visualforce page that's stored in a hashmap.  I think it's choking on a continuation value.  Are you trying to pass a continuation through the callout?