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 :
“error”: “Invalid token: access token is invalid”,
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.
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