simplenote-vim / simplenote.vim

vim plugin to interact with the simplenote service
http://www.vim.org/scripts/script.php?script_id=3582
MIT License
368 stars 31 forks source link

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

Open anselmos opened 6 years ago

anselmos commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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): https://github.com/mrtazz/simplenote.py/issues/11

pixelheresy commented 6 years ago

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 commented 6 years ago

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

atomicules commented 6 years ago

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

Previous comment still applies though.