问题
I can't send an email notification when I add permission in a file with the drive API v3
, before May, it works fine but since 14/05/2020 doesn't send an email with node v10.16.3
.
I do this to authenticate:
and then when I add permission:
Response from drive service
enter image description here
回答1:
This issue has been reported on Google's Public Issue tracker
- Basically, Service acocunts seemed temporarily not be able to send notification emails on their own behalf.
- The notification emails are however sent and received as expected if you use impersonation.
- This issue seemed to be fixed, but if it reappeared again, you should mention it in a comment of the issue.
- In the meantime, use impersonation as a workaround.
- Impersonation is in general a good practice when using service accounts.
来源:https://stackoverflow.com/questions/62025965/sendnotificationemail-doesnt-work-with-service-account-drive-api-v3