-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidClientIdError thrown when the token expires #1345
Comments
It's only a log message, not an exception. So you can assume that everything is working correctly. I can see if I can convert the log message to something less scary. Unless you actually got a stack trace and forgot to attach it here? |
Sorry, yes, I have a stack trace. I was just
while True:
messages = account.inbox.all()
if messages.count() > 0:
# process messages
sleep(10) My main issue is what happens to the request, mainly in cases where the token expires when I'm trying to send an email, so I need to know if I have to retry or if the retry is happening somewhere in the library. |
Ah, it turns out someone stumbled upon this issue before: #1115 Can you check whether your versions of |
|
Describe the bug
I am using OAuth2 in impersonation mode with a FaultTolerance retry policy. When the token expires, an
InvalidClientIdError
exception is thrown. The re-authentication seems to happen on its own, it's just weird that the exception is thrown. It's also not clear to me if the request that caused the token to appear as expired is retried after the successful reauthentication, or if it's on us to implement retries.To Reproduce
Expected behavior
Either a clarification on if there's something wrong with my configuration / setup or how to safely recover from this error.
Log output
Additional context
exchangelib v.5.4.2
python v.3.11.11
The text was updated successfully, but these errors were encountered: