Assigned
Status Update
Comments
jp...@google.com <jp...@google.com> #2
Generated Metadata
- Summary: The developer is encountering a 500 error when sending emails with attachments using the Gmail API in a NodeJS application. The issue only occurs with a specific email account and when attachments are included.
- Tags:
Additional resources:
https://stackoverflow.com/questions/70294138/pdf-attachment-corrupted https://stackoverflow.com/.../getting-internal-error-encountered-when-runni... https://developers.google.com/sheets/api/troubleshoot-api-errors
You can
bl...@google.com <bl...@google.com> #3
Automated by Blunderbuss job workspace-devrel-public-issue-tracker-blunderbuss-autoassigner for config assign for component 191602.
Description
Description
I have a NodeJS app that among doing other things sends emails using the Gmail api with simple pdf attachments. This worked for months and then suddenly it stopped working and I started getting 500 code errors (below). I had changed neither the code nor the account details. Furthermore, it works perfectly fine without an attachment, and the exact same code works perfectly fine with another email address with or without attachments. I have some excerpts of code below that I have tried running.
Code
This file generates an auth token:
This file has the functionality for sending:
and finally to send:
Output
Steps