Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

failed to interact with the simplenote server #21

Open
acidbourbon opened this issue Jan 16, 2017 · 7 comments
Open

failed to interact with the simplenote server #21

acidbourbon opened this issue Jan 16, 2017 · 7 comments
Labels
unconfirmed Needs more info and/or a way to reproduce up for grabs Maintainer has no plans to work themselves. Feel free to tackle.

Comments

@acidbourbon
Copy link

Hi, I don't seem to be able to perform basic interactions with the simplenote server ... this script used to work some months ago ...

import simplenote
sn = simplenote.Simplenote("[email protected]", "mypassword")
note_list = sn.get_note_list()
print( "note list length: {0:d}".format(len(note_list[0])) )
note list length: 0
sn.add_note({'content':'a new note from python', 'tags': 'scripted'})
(URLError(SSLError(8, '_ssl.c:504: EOF occurred in violation of protocol'),), -1)

did Simplenote.com change their protocol?

@atomicules
Copy link
Collaborator

The old/original api still works for me. For instance the tests here still run fine (excepting the occasional get_list_length glitch). I do wonder if they are blocking newer users from it though, but you say this used to work?

@acidbourbon
Copy link
Author

acidbourbon commented Jan 21, 2017 via email

@atomicules
Copy link
Collaborator

I wonder if this could be a python version issue? Or json module issue?

Might be a tricky one to track down. Simplenote.vim uses simplenote.py as well and there was an issue opened there where a couple of people had odd connection issues, but for most it seems to work fine.

@JALusk
Copy link

JALusk commented Feb 13, 2017

I can confirm that I'm getting the same issue as @acidbourbon when using python 2.7.6 on Ubuntu 14.04. I installed simplenote from pip.

However, when I install simplenote in a python 3.4.3 virtualenv using pip, things work fine.

Since my vim is compiled against python2.7, I'm getting
Error: Unable to connect to server.
when I try to run :SimplenoteList

@JALusk
Copy link

JALusk commented Feb 13, 2017

I'm also getting test failures on Python 2.7.6:

test_note_get_previous_version (test_simplenote.TestSimplenote) ... ok
test_note_with_plus_signs (test_simplenote.TestSimplenote) ... ok
test_simplenote_add_note_content (test_simplenote.TestSimplenote) ... ok
test_simplenote_add_note_object (test_simplenote.TestSimplenote) ... ok
test_simplenote_auth (test_simplenote.TestSimplenote) ... FAIL
test_simplenote_delete_note (test_simplenote.TestSimplenote) ... ok
test_simplenote_failed_auth (test_simplenote.TestSimplenote) ... FAIL
test_simplenote_first_note (test_simplenote.TestSimplenote) ... ok
test_simplenote_get_list_length (test_simplenote.TestSimplenote) ... ok
test_simplenote_get_list_with_tags (test_simplenote.TestSimplenote) ... ok
test_simplenote_is_unicode (test_simplenote.TestSimplenote) ... ok
test_simplenote_second_note (test_simplenote.TestSimplenote) ... ok
test_simplenote_trash_note (test_simplenote.TestSimplenote) ... ok
test_simplenote_update_note (test_simplenote.TestSimplenote) ... ok

======================================================================
FAIL: test_simplenote_auth (test_simplenote.TestSimplenote)

Traceback (most recent call last):
File "/home/jlusk/src/simplenote.py/tests/test_simplenote.py", line 46, in test_simplenote_auth
self.assertNotEqual(None, token)
AssertionError: None == None

======================================================================
FAIL: test_simplenote_failed_auth (test_simplenote.TestSimplenote)

Traceback (most recent call last):
File "/home/jlusk/src/simplenote.py/tests/test_simplenote.py", line 50, in test_simplenote_failed_auth
self.assertRaises(simplenote.SimplenoteLoginFailed, s.get_token)
AssertionError: SimplenoteLoginFailed not raised


Ran 14 tests in 9.891s

I had to comment out test_simplenote_get_list_length_longer_than_note_fetch_length() because it would hang the test suite.

@atomicules
Copy link
Collaborator

Bizarre. I just ran the tests again with 2.7.11 and all worked fine. I wonder if this is a SNI thing and therefore python 2.7.9 onwards is needed?

@atomicules atomicules added unconfirmed Needs more info and/or a way to reproduce up for grabs Maintainer has no plans to work themselves. Feel free to tackle. labels Jun 2, 2019
@atomicules
Copy link
Collaborator

Doing a bit of a review of older issues. I'm not personally going to work this one and I'm unsure what the exact issue is.

It could be TLS related, in which case see #23

Or it could no longer be relevant now we've switched to the Simperium API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed Needs more info and/or a way to reproduce up for grabs Maintainer has no plans to work themselves. Feel free to tackle.
Projects
None yet
Development

No branches or pull requests

3 participants