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

Problem with gathering Token at simplenote.py that outputs Error: Unable to connect to server. #98

Open
anselmos opened this issue Feb 8, 2018 · 7 comments
Labels
unconfirmed Needs more info and/or a way to reproduce

Comments

@anselmos
Copy link

anselmos commented Feb 8, 2018

I have attached 2 files : Dockerfile.txt and Makefile.txt.

Please remove the extension for files and then:

make build && make test

What it does - creates a ubuntu:trusty docker container and adds simplenote.vim and simplenote.py (api) . Then it runs vim +SimplenoteList within bash of container.

I've created a temporary user for simplenote and added to .vimrc user&password.

The command outputs error instead of making call with token to list files:

"Simplenote" [New File]
Error: Unable to connect to server.
Press ENTER or type command to continue

I have traced problem to a authenticate method inside of

~/.vim/bundle/simplenote.vim/autoload/simplenote.py/simplenote/simplenote.py

Does not return token, instead it returns None, which then makes handling request on method:

__get_notes

to have a token=None inside of arguments.

Can you please support with this matter ?
Dockerfile.txt
Makefile.txt

@atomicules
Copy link
Collaborator

atomicules commented Feb 11, 2018

Can you try using simplenote.py and seeing how far you get with that? And then report which version of python you are using with it?

I have a suspicion that since this uses the old version of the API and they decided against releasing the new version of the API it maybe a case of luck whether this now works for folk. I.e. perhaps for newer accounts they just disabled access?

Unfortunately there is probably very little I can do about that.

@anselmos
Copy link
Author

Ok I will check that, But in the meantime can you guide me to the new API that simplenote has released? So that I could make a PR on simplenote.py
with changes that should be done for the python-api to work with this vim-plugin?

@pixelheresy
Copy link

It looked like (from Twitter) there were server updates happening for the web client last week. Everything should be working.

However, it does look like they made a change that breaks some aspects of using this plugin, following this server "maintenance": #99

@atomicules
Copy link
Collaborator

But in the meantime can you guide me to the new API that simplenote has released? So that I could make a PR on simplenote.py

I actually made these branches some time ago (at the time thinking they'd switch to it soon):

Discussed here (with link to the Simperium API): simplenote-vim/simplenote.py#11

@pixelheresy
Copy link

That's the thing. They didn't announce anything except for server maintenance. However, when things were back up, the issue seen in #99 appeared.

tweet referenced

@atomicules
Copy link
Collaborator

We've now switched to the Simperium API so would be interested to now if these auth issues, etc have gone away.

atomicules added a commit that referenced this issue Nov 5, 2018
Finally. Should have done this years ago, but have been busy.i What can
you do?!

Fixes: #102
Fixes: #96
References: #98
@atomicules
Copy link
Collaborator

Whoops ^ that commit was not meant to reference this issue. Picked the wrong one.

Previous comment still applies though.

@atomicules atomicules added the unconfirmed Needs more info and/or a way to reproduce label Apr 8, 2019
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
Projects
None yet
Development

No branches or pull requests

3 participants