
Hey @Support , I’m running a serverless function in Appwrite Cloud that sends emails using Google OAuth (nodemailer + googleapis). The same code works perfectly when tested locally, but in Appwrite Cloud, I keep getting this error:
Error sending email: Error: invalid_grant
I’ve already checked:
My client_id, client_secret, and refresh_token are correct.
The refresh token is working locally.
The Appwrite function’s environment variables are set correctly.
The function is running in the latest Node.js runtime.
Recommended threads
- Stuck at pinging the server to finish ad...
I'm not using the starter app and I'm not sure how to finish connecting my app to Appwrite.io. Is there a CURL command I can run to finish setup?
- 500 internal error
I get a 500 internal error when trying to access my database on appwrite cloud. Sometimes it would start working but this time it never corrects.
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
