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.
Temporary fix: I have to generate the OAuth token every time in order to execute the GET requests. From this, I have found that token is expiring between calls. But, it is not happening in local.
How can I avoid this?
Thanks in advance!