【问题标题】:Firebase email trigger extension: can't attach pdf fileFirebase 电子邮件触发器扩展:无法附加 pdf 文件
【发布时间】:2021-09-05 15:17:45
【问题描述】:

我正在使用firebase email trigger extension 发送带有 pdf 附件的电子邮件。 但是无论我做什么以及如何发送文件,我总是会收到此错误:

Unhandled error { 
   Error: 3 INVALID_ARGUMENT: Property attachments contains an invalid nested entity. 
   note: 'Exception occurred in retry method that was not classified as transient' 
} 

我正在尝试将 pdf 作为文本(或编码文本)发送,而不是将文件上传到某个存储,然后只发送 url。

【问题讨论】:

  • 根据documentation,扩展支持message.attachments属性的以下内容:“包含附件的数组;支持的Nodemailer选项:utf-8字符串,自定义内容类型,URL 、编码字符串、数据 URI 和预生成的 MIME 节点(请注意,您的电子邮件无法访问云服务器的文件系统)”您的值是否满足这些要求?你能在你的问题中证明这一点吗?

标签: firebase google-cloud-functions


【解决方案1】:

问题在于文件的大小(超过 2mb 的编码内容)

【讨论】:

    猜你喜欢
    • 2022-11-20
    • 2021-05-23
    • 2022-11-20
    • 2020-11-06
    • 2021-06-21
    • 2020-02-08
    • 1970-01-01
    • 2020-11-08
    • 1970-01-01
    相关资源
    最近更新 更多