I have a batch apex class that makes an http (GET) callout to external api from salesforce. It returns x number of JSON objects which are decoded to create lists of cases but the dml upon insert never exceeds 200. The code runs as expected in sandbox but when run in production, i get the : First error: connection was cancelled here. How can i solve this issue?
I have also tried setting req.setTimeout(2000); but this has had no effect. Does the setTimeout() just time out the request after an x period of time with no response or just it time out until the specified time?
Your help is much appreciated.