Hi,
I'm currently trying to develop an integration between SugarCRM and Freshdesk. For that, I'd be displaying the lead, contact and account data from Sugar to Freshdesk. When I concurrently do those 3 requests, only the first one executes successfully. The rest two fails with an error: invalid token. But I use the same header for all the 3 requests.
It only happens in production. When I try with localhost, it works fine. What could be the issue? Please let me know what I'm doing wrong.
Thanks in advance!
Could it be that your token expires between the api calls?
Tokens can be refreshed:
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_8.0/Integration/Web_Services/REST_API/En…
Also see Platform information here, if you are using the same credentials for various API applications you could end up invalidating your token between calls:
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Architecture/Extensions/Platforms/
You could try using the Bulk endpoint to execute all three within one call:
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_8.0/Integration/Web_Services/REST_API/En…
HTH
FrancescaS