function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Yogesh KumarYogesh Kumar 

Rest API becomes not responding

Sometimes Rest API becomes not responding, on retrying it works fine. We are facing this issue with first request only subsequent requests responded successfully. 

I am using Rest API to fetch account information-
instanceUrl + "/services/data/v27.0/query?q=Select+id,+Name+FROM+Account+WHERE+OwnerId='" + userId + "'";

 

Here are the steps how we have implemented:

  1. Using OAuth get access token
  2. Build Authorization header and execute above http request 
asawantasawant

Make sure you are not behind a firewall/proxy. Also, do you get the same results when you test the REST calls from other networks? Try making the same REST call from some browser add-ons like RESTClient (FF) or Dev HTTP Client (Chrome) to check if you get same result.

 

Thanks!