We have a strange problem with access token.
We use oauth2 for add activities in our curstomer pipedrive Account.
When access token is expired, we use the refresh token to have a new access token.
But, sometimes, the access tokens generated are not valid while the refresh token looks valid.
The API always returns this error, no matter how many times you try to generate the access token :
{
“success”: false,
“error”: “Invalid token: access token is invalid”,
“errorCode”: 401
}
Got the same problem here. If we call the the same entry point multiple time in a row, one will fail with the 401 error even if the access token have not expired.
Not pattern in particular.
But activities are created in response to telecom events. This events can be a lot.
So, maybe relation with Louis-Michel_Mathurin response but the customers who have the problem are not the ones who make the most calls to the API.
And most importantly, why new tokens are always invalid while the refresh token is valid.
Does Pipedrive allows us to have multiple access tokens from the same refresh token? As far as we can tell, there can be only one access token corresponding to one refresh token in Pipedrive.
To answer this specific question, for the time being we only allow one access token corresponding to a refresh token. Feel free to share the use case so I can share with our product folks.
userID/companyID/time of request where you got an error. Ideally it would be one company&user that consistently has these problems, so we could add more logging. Otherwise, if they are random ones, it’s more difficult to debug
Company ID - 591653
Pipedrive User ID - 4544079
Time: 9:43 am
Wednesday, 9 October 2019 UTC
We tried refreshing tokens, we got a new access token, but that was called invalid and expired.
Though refresh token still gives us a new access token
We are seeing this spread across multiple PD teams, is there a way we can arrange a call with your engineering team. We have logs that support these erros that we are receiving from your end.
Can you please share with us the following when there’s another failure:
• what is the exact URL you are making a request to with an access token
• access token that failed
• timestamp of the request