gmail-processor icon indicating copy to clipboard operation
gmail-processor copied to clipboard

message.exportAsPdf is returning error: ReferenceError: URL is not defined

Open aixaCode opened this issue 6 months ago • 0 comments

Describe the bug

I'm trying to use message.exportAsPdf, but when executing it results in this error:

2024-08-08T22:59:22.037Z ERROR Stacktrace: ReferenceError: URL is not defined
    at GmailExportAdapter.getDataUri (GmailProcessorLib:25185:39)
    at GmailProcessorLib:25226:39
    at String.replace (<anonymous>)
    at GmailExportAdapter.processImageTags (GmailProcessorLib:25224:18)
    at GmailExportAdapter.embedHtmlImages (GmailProcessorLib:25213:18)
    at GmailExportAdapter.generateMessageHtmlBody (GmailProcessorLib:25300:20)
    at GmailExportAdapter.generateMessagesHtml (GmailProcessorLib:25355:21)
    at GmailAdapter.messageAsHtml (GmailProcessorLib:25381:43)
    at GmailAdapter.messageAsPdf (GmailProcessorLib:25386:24)
    at exportAsPdf (GmailProcessorLib:23598:111)

It seems that the issues is coming from GMailExportAdapter.getAvatar() for this email.

Screenshot 2024-08-09 000231

aixaCode avatar Aug 08 '24 23:08 aixaCode