This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

TB 115 (Arch Linux): Encryption fails, "punycode.js, line 440: ReferenceError: module is not defined"?

  • 2 replies
  • 0 have this problem
  • 2 views
  • Last reply by Peer

more options

Hi Mozilla community!

Just upgrading from TB 102.13 (on Manjaro) to 115.0.1 (on Arch Linux), nearly everything works and the GUI experience is much better! Great job :-)

But after importing my PGP-Keys and trying to send mails encrypted, I received an error with no further explanation. On the command line I got some hints and assume, that this might be the origin of the problem:

punycode.js, line 440: ReferenceError: module is not defined

the packages libidn and libidn2, which provide punycode.js, are already installed.

Is there something wrong with my installation or, on the other hand, the bug already known?

Thank you very much & kind regards, Peer


Output [..] console.debug: "Found 14 public keys and 10 secret keys (10 protected, 0 unprotected)" console.debug: "Successfully loaded optional OpenPGP library libgpgme.so from system's standard library locations" console.debug: "gpgme version: 1.21.0" __JavaScript error: moz-extension://04f07a36-b26f-478b-b410-7c40254a26cc/punycode/punycode.js, line 440: ReferenceError: module is not defined__ console.debug: "Trying to load /usr/lib/thunderbird/libotr.so" console.debug: "Trying to load libotr.so from system's standard library locations" console.debug: "Successfully loaded OTR library libotr.so from system's standard library locations" console.debug: (new TypeError("manUrl.value is undefined", "chrome://openpgp/content/modules/mimeDecrypt.jsm", 428)) console.debug: (new TypeError("manUrl.value is undefined", "chrome://openpgp/content/modules/mimeDecrypt.jsm", 428)) console.debug: "OpenPGP error status: M\xF6glicherweise PGP/MIME-verschl\xFCsselte oder signierte Nachricht; verwenden Sie die Funktion \u201EEntschl\xFCsseln/Verifizieren\u201C zum Verifizieren." console.debug: (new TypeError("manUrl.value is undefined", "chrome://openpgp/content/modules/mimeDecrypt.jsm", 428)) console.debug: (new TypeError("manUrl.value is undefined", "chrome://openpgp/content/modules/mimeDecrypt.jsm", 428)) console.log: "CryptoAPI.sync() failed result: %o" (new TypeError("argument of size undefined ArrayType constructor must be an array object or integer", "chrome://openpgp/content/modules/RNP.jsm", 3384)) console.debug: (new Error("failure in finishCryptoEncapsulation, exitCode: -1", "chrome://openpgp/content/modules/mimeEncrypt.jsm", 537)) JavaScript error: chrome://openpgp/content/modules/mimeEncrypt.jsm, line 537: Error: failure in finishCryptoEncapsulation, exitCode: -1 console.error: mailnews.send: ({}) console.error: mailnews.send: "Sending failed; , exitCode=2153185313, originalMsgURI=mailbox-message://xxxxxxxxxxxxx@xxxxxxxxxxxxxxxxx [..]


pacman -Ss punycode core/libidn2 2.3.4-3 [Installiert]

  • Free software implementation of IDNA2008, Punycode and TR46

extra/libidn 1.41-1 [Installiert] [..]


Hi Mozilla community! Just upgrading from TB 102.13 (on Manjaro) to 115.0.1 (on Arch Linux), nearly everything works and the GUI experience is much better! Great job :-) But after importing my PGP-Keys and trying to send mails encrypted, I received an error with no further explanation. On the command line I got some hints and assume, that this might be the origin of the problem: punycode.js, line 440: ReferenceError: module is not defined the packages libidn and libidn2, which provide punycode.js, are already installed. Is there something wrong with my installation or, on the other hand, the bug already known? Thank you very much & kind regards, Peer ------------- Output [..] console.debug: "Found 14 public keys and 10 secret keys (10 protected, 0 unprotected)" console.debug: "Successfully loaded optional OpenPGP library libgpgme.so from system's standard library locations" console.debug: "gpgme version: 1.21.0" __JavaScript error: moz-extension://04f07a36-b26f-478b-b410-7c40254a26cc/punycode/punycode.js, line 440: ReferenceError: module is not defined__ console.debug: "Trying to load /usr/lib/thunderbird/libotr.so" console.debug: "Trying to load libotr.so from system's standard library locations" console.debug: "Successfully loaded OTR library libotr.so from system's standard library locations" console.debug: (new TypeError("manUrl.value is undefined", "chrome://openpgp/content/modules/mimeDecrypt.jsm", 428)) console.debug: (new TypeError("manUrl.value is undefined", "chrome://openpgp/content/modules/mimeDecrypt.jsm", 428)) console.debug: "OpenPGP error status: M\xF6glicherweise PGP/MIME-verschl\xFCsselte oder signierte Nachricht; verwenden Sie die Funktion \u201EEntschl\xFCsseln/Verifizieren\u201C zum Verifizieren." console.debug: (new TypeError("manUrl.value is undefined", "chrome://openpgp/content/modules/mimeDecrypt.jsm", 428)) console.debug: (new TypeError("manUrl.value is undefined", "chrome://openpgp/content/modules/mimeDecrypt.jsm", 428)) console.log: "CryptoAPI.sync() failed result: %o" (new TypeError("argument of size undefined ArrayType constructor must be an array object or integer", "chrome://openpgp/content/modules/RNP.jsm", 3384)) console.debug: (new Error("failure in finishCryptoEncapsulation, exitCode: -1", "chrome://openpgp/content/modules/mimeEncrypt.jsm", 537)) JavaScript error: chrome://openpgp/content/modules/mimeEncrypt.jsm, line 537: Error: failure in finishCryptoEncapsulation, exitCode: -1 console.error: mailnews.send: ({}) console.error: mailnews.send: "Sending failed; , exitCode=2153185313, originalMsgURI=mailbox-message://xxxxxxxxxxxxx@xxxxxxxxxxxxxxxxx [..] ------------- pacman -Ss punycode core/libidn2 2.3.4-3 [Installiert] * Free software implementation of IDNA2008, Punycode and TR46 extra/libidn 1.41-1 [Installiert] [..] -------

Modified by Peer

All Replies (2)

more options
But after importing my PGP-Keys and trying to send mails encrypted, I received an error with no further explanation.

For a simple upgrade you'd not need to import your OpenPGP keys again, since the profile doesn't change. Why did you think this would be necessary?

punycode.js, line 440: ReferenceError: module is not defined

I don't know what that means. Did you check the system requirements in the release notes? https://www.thunderbird.net/en-US/thunderbird/115.0/system-requirements/

You may also post to the Thunderbird e2ee mailing list in Topicbox. https://thunderbird.topicbox.com/groups/e2ee

more options

Hi,

thank you!

christ1 schrieb

But after importing my PGP-Keys and trying to send mails encrypted, I received an error with no further explanation.

For a simple upgrade you'd not need to import your OpenPGP keys again, since the profile doesn't change. Why did you think this would be necessary?

I migrated a very old TB-installation (iirc from 2006, always updated via copying the data-directory under .thunderbird and editing profiles.ini) that had some flaws. So I hoped to get rid of these flaws and imported all old mails, adresses, etc. in a freshly installed, plain TB application.

And I was really impressed: All my 20+ remote calendars and addressbooks were imported without any problem! Really great!

punycode.js, line 440: ReferenceError: module is not defined

I don't know what that means. Did you check the system requirements in the release notes? https://www.thunderbird.net/en-US/thunderbird/115.0/system-requirements/

The requirements are easily fulfilled and TB itself is running without issues. Its just when I try to encrypt a message.

~/ inxi 
CPU: 8-core AMD Ryzen 9 5900HX with Radeon Graphics (-MT MCP-)
speed/min/max: 1330/1200/4679 MHz Kernel: 6.4.7-arch1-1 x86_64 Up: 3h 12m
Mem: 14.13/62.23 GiB (22.7%) Storage: 1.82 TiB (36.8% used) Procs: 408
Shell: Zsh inxi: 3.3.28
You may also post to the Thunderbird e2ee mailing list in Topicbox. https://thunderbird.topicbox.com/groups/e2ee

Thanks again :-) I will give it a try.

Best regards,

Modified by Peer