May 13, 2016

System.CalloutException: Method can not be null

If you face System.CalloutException: Method can not be null issue, make sure you are using POST Or GET Or PUT in your request.

Sample Code:

  1. HTTPRequest req = new HTTPRequest();  
  2. req.setEndPoint('End Point URL');  
  3. req.setMethod('GET');  

1 comment: