Unstable response from API call

Tagged:

Currently contains 4 posts

Avatar

April 14, 2021 00:39

brwanghtm

Hello,

We have an API call from our app, but get unstable responses. For example, with 5 consecutive calls with around 20 sec interval, the 1st, 3rd, 4th calls failed, with response “401 Unauthorized”, but the 2nd and 5th calls succeeded with response code of 200.
Since all 5 calls are using the same access token, and the 5th call succeeded, and the token is freshly generated, it was probably not the case where the access token expired.

API: https://www2.pcrecruiter.net/rest/api/companies?ResultsPerPage=100&Page=1

Do you have any idea about what can be the reasons? Thank you!

Avatar

April 14, 2021 15:41

Jarrid-PCRecruiter

It’s possible there’s security the username you’re generating the token with doesn’t have access to specific data/record.

Avatar

April 14, 2021 17:46

brwanghtm

Hi Jarrid,

Thanks for the response.
The requests were sent from the same user using the same access token. There’s no other operations between those five calls.

Avatar

April 14, 2021 17:51

Jarrid-PCRecruiter

Can you email me the credentials to create the session ID? jarrid (at) mainsequence (dot) net

and the request you’re sending? or is it the one above to pull companies 100 at a time?

Reply to thread