gco / emacs-evernote-mode

Automatically exported from code.google.com/p/emacs-evernote-mode
0 stars 0 forks source link

Cannot login (Ruby 1.9.3 has one issue, but possibly some other issues) #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Using Emacs 23.3.50.1 (Aquamacs, MacOSX Lion), Ruby 1.9.3p0, OpenSSL 
0.9.8r, emacs-evernote-mode version 0.41
2.  Install, verify OpenSSL connection
3. Add key lines to .emacs, configure username
3. M-X evernote-login, provide password

What is the expected output? 

 I'm honestly not sure what I should see on login :-)

What do you see instead?

 First error reported:

error in process sentinel: enclient.rb exited abnormally with code 1
-e:1: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or 
tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
:1: Use RbConfig instead of obsolete and deprecated Config.

This appeared to come from the line 1705 in the evernote-mode.el file,
which read:

     (call-process evernote-ruby-command nil standard-output nil
                   "-rrbconfig" "-e" "print Config::CONFIG['bindir']")

I assume this was due to my recent version of Ruby.  I changed "print
Config::" to "print RbConfig::", and I get a little further.  The message 
changes to:

    get message "progn: No catch for tag: error, 101".

The Evernote-Client-Output buffer contains

    ((class . ErrorReply)(command_id . 1)(result_code . 101)(message . "can't convert nil into String"))

I looked in the issue list, and saw a similar problem in Issue 5.  But I 
checked my OpenSSL connection to www.evernote.com:443 and it appears to be 
fine.  Immediately after the certificate, I get

subject=/C=US/ST=California/L=Mountain View/O=Evernote 
Corp./OU=Operations/OU=Terms of use at www.verisign.com/rpa 
(c)05/CN=www.evernote.com
issuer=/C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=Terms of use at 
https://www.verisign.com/rpa (c)09/CN=VeriSign Class 3 Secure Server CA - G2

---
No client certificate CA names sent

---
SSL handshake has read 3097 bytes and written 401 bytes

---
New, TLSv1/SSLv3, Cipher is DES-CBC3-SHA
Server public key is 1024 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : DES-CBC3-SHA
    Session-ID: 4EFC846131B931D78AC5F2B3802C8FC26B55448819402349D3EFC4207F0F2C0B
    Session-ID-ctx: 
    Master-Key: D1E264DDB65C18ADBEDE84D5715CCF55912B2576D541D377BAF6D2A8789FB1B82E6A58966136A8E8622BE4D682F50307
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    Start Time: 1325171809
    Timeout   : 300 (sec)
    Verify return code: 20 (unable to get local issuer certificate)

Original issue reported on code.google.com by gtuckerk...@gmail.com on 29 Dec 2011 at 3:27

GoogleCodeExporter commented 9 years ago
Identical problem.

Original comment by robert.j...@gmail.com on 31 Dec 2011 at 2:46

GoogleCodeExporter commented 9 years ago
Thank you for your report.
I have fixed first error. (r197)

I will check second error.

Original comment by awas...@gmail.com on 4 Jan 2012 at 1:50

GoogleCodeExporter commented 9 years ago
Regarding the second error, I still receive the 101 error though my openssl now 
returns ok (log attached).  I've also attached the evernote-mode log.  Please 
let me know if I can provide anything else.

Original comment by gtuckerk...@gmail.com on 4 Jan 2012 at 2:22

Attachments:

GoogleCodeExporter commented 9 years ago
I fixed Ruby 1.9.3 problem. (r198)

Could you try latest enclient.rb?

Original comment by awas...@gmail.com on 9 Jan 2012 at 6:08

GoogleCodeExporter commented 9 years ago
r198 now works!  Thanks so much

Original comment by gtuckerk...@gmail.com on 10 Jan 2012 at 3:49

GoogleCodeExporter commented 9 years ago

Original comment by awas...@gmail.com on 10 Jan 2012 at 8:56

GoogleCodeExporter commented 9 years ago
Hi. I recently installed emacs-evernote-mode under Fedora 17 with Emacs 24.1.1 
(i686-redhat-linux-gnu, GTK+ Version 2.24.11) and still have the same problem. 
I changed Config to RbConfig and got the pw prompt which I entered but after 
that, a message reads "can't convert nil into String".  any hints?

Original comment by profespi...@gmail.com on 28 Sep 2012 at 2:46