-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
gmail token expired after 1 week #3305
Comments
I have also had the same issue which I have hopefully fixed. I came across this post on Stack Overflow that mentioned something about the app needing to be published in order for Auth token to keep being refreshed. I looked through the original Gmail setup thread again and found where the 'Publish' button is: After publishing the App, Google will complain about it needing to be verified, you don't have to worry about that. It will just make you click a few more things when you run the link back through your web browser from the docker container. After I published the app, I downloaded an replaced my gmail.json file again, just in case it needed it. I have no idea if this will actually work, but it is the best I have found so far Fingers are crossed |
@gregbert42 , I have left this for a week and it seems to still be sending emails successfully. |
I’ve re-authenticated now, again thanks to @mitch-e s awesome instructions. I’ve published the app, the Google talks about sending it for approval and a bunch of other stuff and wanted a YouTube video explaining how I was gonna use the scope. If someone actually reviews what I put, I may be rejected. but I guess we’ll give it a week and see if it still works. |
@gregbert42 , you should not actually need to perform the verification with Google, just the initial publish bit should be fine. |
Describe the bug/problem
After setting up gmail to work successful, 1 week later it no longer works. in the log i see:
[2025-02-05 20:25:36,145] ERROR {cps.tasks.mail:199} ('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'})
To Reproduce
Steps to reproduce the behavior:
As described
Logfile
Expected behavior
Self evident
Screenshots
not needed
Environment (please complete the following information):
host: Linux 6.6.65-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 11 Dec 2024 15:35:54 +0000 x86_64 GNU/Linux
docker container:
Additional context
my gmail uses 2fa, which i was successful at authenticating past.
The text was updated successfully, but these errors were encountered: