Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
aixaCode opened this issue Aug 8, 2024 · 0 comments
Labels

Comments

@aixaCode
Copy link

aixaCode commented Aug 8, 2024

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 aixaCode added the bug label Aug 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant