Excel VBA Timeout Error -2147012894 -
i trying make rest call sfdc excel vba (using oauth2) every time got error message "error : -2147012894 - timeout error" on "http1.send" line. below code working fine on machine. both machine have excel 2007 windows 7
code :
dim http1 object dim url string url = "https://test.salesforce.com/services/data/v32.0/sobjects/opportunity/describe" on error goto errorhandler set http1 = createobject("msxml2.serverxmlhttp") http1.open "get", url, false http1.settimeouts 0, 0, 0, 0 http1.setrequestheader "authorization", "bearer " & getsetting("sf", "tokens", "accesskey") 'accesstoken http1.setrequestheader "content-type", "application/json" http1.send set retrievedata = http1 set http1 = nothing exit function errorhandler: msgbox "error : " & err.number & " - " & err.description
please help, if have come across type of error. appreciated.
thanks