2

Working through a quick example of using a Continuation to make an async web service callout produced the following error after pressing the apex:commandButton that called the action returning the Continuation.

Cannot execute the continuation for Web Service calls

Cannot execute the continuation for Web Service calls

What is going wrong here?

6

In my case it turned out to be the oldest problem in the book with callouts. Hopefully this will save someone a couple of minutes head scratching.

Just as with the synchronous callouts, to make a callout to an asynchronous web service the domain needs to be listed under:

Setup > Administration Setup > Security Controls > Remote Site Settings.
  • 1
    Never saw such error message. Good observation. – the_phantom Jun 5 '15 at 4:17
  • 1
    Is it acceptable for me to hate myself for ending up here having had this exact problem?!! --- It must be a Friday. Cheers Daniel – Simon Lawrence Nov 25 '16 at 13:17
  • @SimonLawrence - Perfectly acceptable :) In hindsight it seemed obvious, but the error message wasn't very helpful. – Daniel Ballinger Nov 26 '16 at 9:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.