Closed alenkei closed 10 years ago
same problem for me with a freshly new generated key using the extension's interface. It happens whether to sign and/or encrypt the message.
the Javascript console reports the following problem:
Error in event handler for (unknown): undefined is not a function
Stack trace: TypeError: undefined is not a function
at writeContents (chrome-extension://jcaobjhdnlpmopmjhijplpjhlplfkhba/gmail-crypt.js:74:23)
at chrome-extension://jcaobjhdnlpmopmjhijplpjhlplfkhba/gmail-crypt.js:156:5
at messageListener (extensions::messaging:340:9)
at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
at EventImpl.dispatchToListener (extensions::event_bindings:395:22)
at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
at Event.publicClass.(anonymous function) [as dispatchToListener] (extensions::utils:65:26)
at EventImpl.dispatch_ (extensions::event_bindings:378:35)
at EventImpl.dispatch (extensions::event_bindings:401:17)
at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
arg, sorry, just quit and relaunch chrome solved the issue...
Restart did not fox it for me.
@Sebastien: Are you using a key pair generated for the email account you're sending from? I'm using one for another email address.
In Thunderbird you can tell it which key to use for signing.
Best regards, Andrei
On Wed, Jun 25, 2014 at 9:34 PM, Sebastien Varrette < notifications@github.com> wrote:
arg, sorry, just quit and relaunch chrome solved the issue...
— Reply to this email directly or view it on GitHub https://github.com/seancolyer/gmail-crypt/issues/61#issuecomment-47148007 .
@alenkei Yes, I generated a fresh new key pair associated to the email account I was using (my Gmail one).
Did you type in your PGP/GPG passphrase before signing? I had the same issue and typing that in the "password" field and clicking "sign" or "Encrypt and sign" fixed it.
Hi Sean,
I just tested that with interesting results.
The error pop-up does not appear BUT it also does not "sign" nor does it "encrypt and sign", i.e. it doesn't do anything.
"encrypt" works but that is because it is done with the public key of the receipient.
It looks like the "sign" bit is broken.
Two thoughts on the matter:
1) I had not typed in a passphrase because I had just decrypted an email and the passphrase is cashed(I could decrypt other encrypted emails without having to type in the passpharase for each one of them). If I can decrypt based on cashed passphrase I'd expect to be able to sign
2) It would help if the error message was more specific and point out that one has not typed in the passphrase rather than not finding the certificate
Regards, Andrei
On Thu, Jun 26, 2014 at 3:30 PM, bstonecrest notifications@github.com wrote:
Did you type in your PGP/GPG passphrase before signing? I had the same issue and typing that in the "password" field and clicking "sign" or "Encrypt and sign" fixed it.
— Reply to this email directly or view it on GitHub https://github.com/seancolyer/gmail-crypt/issues/61#issuecomment-47225277 .
@alenkei is your key correctly showing up in "my keys" in the options page? If you explicitly type your passphrase in for each signing does that make a difference?
I agree that some of the error messaging could be more clear, it's something I hope to work on soon.
Hi Sean,
Key shows up, (see pic below). Please keep in mind that the key is for my @ yahoo.com account and in this case I am using my @lenkei.com account on Gmail.
Typing in the passphrase for each signing attempt does not help. It does not come with any errors, it just doesn't do anything.
Best regards, Andrei
[image: Inline image 2]
On Tue, Jul 1, 2014 at 4:23 AM, Sean Colyer notifications@github.com wrote:
@alenkei https://github.com/alenkei is your key correctly showing up in "my keys" in the options page? If you explicitly type your passphrase in for each signing does that make a difference?
I agree that some of the error messaging could be more clear, it's something I hope to work on soon.
— Reply to this email directly or view it on GitHub https://github.com/seancolyer/gmail-crypt/issues/61#issuecomment-47610352 .
I just pushed a pull request in issue #64 . This is a quick fix for this actual issue. It may not be the nicest fix.
The actual problem is that the from field in the compose FORM is not set. The only case I found it to be set properly was on a multiple gmail accounts configuration. So I added a fallback when the from field is not set by looking in the account information part.
Closing, as this was fixed in Version 30 in #64 by @scritch007
Thanks for that great work. I'm sorry but Version 30 did not fix it for me.
Still not able to sign and decrypt.
I am also on version 30 and it also can't find my private key, but it seems to only be when I try to sign and verify the signature. Encrypting and decrypting works 100% correctly...
Thank you for the effort you put into this project.
Chrome version: 35.0.1916.153 m
Error detail in console:
Error in event handler for (unknown): undefined is not a function
Stack trace: TypeError: undefined is not a function
at writeContents (chrome-extension://jcaobjhdnlpmopmjhijplpjhlplfkhba/gmail-crypt.js:70:23)
at Object.
I have noticed that sometimes encrypt and decrypt also doesn't work... I have not been able to get an output from that yet though...
let me know what else you need and I'll stick it in here...
cheers, Colin
Got the same error too. I'll look into it.
Just created a pull request #65 that should fix the issue. The problem was that Gmail has updated the name of the field where the fix used to look, so this requires a new version.
Has this issue been fixed yet? I'm still getting the same error.
Hi,
Thank you for a very useful extension.
I have an issue with signing outgoing emails: "Unable to find a private key for the given user. Have you inserted yours in the Options page?"
I originally created my key pair for my yahoo.com email address and I am now using my lenkei.com account. I have uploaded my yahoo.com key pair via the Options page.
I guess that gmail-crypt doesn't use the yahoo.com private key because I'm sending from my lenkei.com address.
Can we have an option to tell it to use a particular private key for signing?
Best regards, Andrei