mdedetrich commented on PR #546: URL: https://github.com/apache/pekko-management/pull/546#issuecomment-3546978955
> One point raised is that there still might be timing issues where you read the token file but it rotates just before you use it. According to the AI I used, the old token is invalidated at rotation time. That is, you are unlucky and the API call happens at same time as a token rotation event and you start by reading the token file moments before it is rotated so you could make the API call with a recently invalidated token. > > So, maybe the best enhancement is to handle 401s by retrying. > > We could come back to caching later. I am implementing a retry mechanism now -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
