I'm trying to update contacts via REST API with forcejs and simple CURL. I'm trying to POST or PATCH a record, but all my requests have no responses. I'm trying those requests on my sandbox.
For example here is my CURL test from terminal:
curl 'https://xxx.my.salesforce.com/services/data/v41.0/sobjects/contact/xxx'
-H 'Content-Type: application/json'
-H 'Accept: application/json'
-H 'Cache-Control: no-store'
-H 'Accept-Language: en-us'
-H 'Accept-Encoding: br, gzip, deflate'
-H 'Authorization: Bearer xxx'
-H 'Content-Length: 37'
-H 'Target-URL: https://xxx.my.salesforce.com'
-H 'X-Connect-Bearer-Urls: true'
--data-binary '{"Title":"Updated Title"}'
-X PATCH
And here is the answer
[{"message":"java.util.concurrent.TimeoutException: Idle timeout expired: 120000/120000 ms","errorCode":"JSON_PARSER_ERROR"}]
And sometimes answer is
curl: (52) Empty reply from server
To tell you the truth, it did worked a couple of time (3 maybe) and then only response I see is time out. Maybe I've got blocked for making wrong requests? Or there is a quota?