Closed billynoah closed 1 month ago
I have the same problem(
we observe the same issue every day. same use case.
We've just come across this same problem, we are using NodeJS and trying to send an email on behalf of a user. It is also intermittent. Looks like it's an issue on the googleapis
core
[Update] in our case, this is only happening for specific users
Hello!
Thanks so much for reaching out, this definitely seems an issue with the API more than the library.
Here is some information I found looking around related to the issue, I hope it helps! https://stackoverflow.com/questions/77300161/getting-precondition-check-failed-when-using-gmail-api-with-a-service-account
Closing the issue as it is not related to the library.
Environment details
Steps to reproduce
We are experiencing intermittent issue where listing gmail messages returns a Google Service Exception:
Code example
This happens in a job that runs approx once every 60 seconds. Every time it runs the token is refreshed so presumably it is not an authentication issue. In the course of a day it might happen 1% - 2% of of the time out of 1000 times the job runs. So not very often, but often enough that it is cause for concern.
This has been going on for years. Is there anything we can do or is it simply a glitch in the API server where we should just wait and make the request later?