insanum / sncli

Simplenote CLI
MIT License
397 stars 34 forks source link

API down: 404 Not Found - Couldn't get the token? #63

Closed TDHTTTT closed 6 years ago

TDHTTTT commented 6 years ago

Basically:

>>> res = requests.post("https://simple-note.appspot.com/api/login", data=values)
>>> print(res)
<Response [404]>

I guess it is more related to the API itself, not you. But maybe you know the answer since I couldn't find the official simple note API, apart from the outdated pdf: http://kendersec.github.io/SimpleNote/SimpleNote-API-v2.1.3.pdf

samuelallan72 commented 6 years ago

Thanks for reporting. It appears that the usual API endpoints are no longer functioning. Hopefully this is temporary!

Note: the api used by the third party simplenote apps doesn't seem very official any more, since the official api is through simperium. The only docs I could find was the pdf you have linked to as well.

TDHTTTT commented 6 years ago

Thank you for replying!

casutherland commented 6 years ago

The API endpoints still appear to be down for me.

2018-08-14 23:16:34,424 [DEBUG] Starting full sync
2018-08-14 23:16:34,432 [DEBUG] Starting new HTTPS connection (1): simple-note.appspot.com
2018-08-14 23:16:34,515 [DEBUG] https://simple-note.appspot.com:443 "POST /api/login HTTP/1.1" 404 154
2018-08-14 23:16:34,518 [DEBUG] AUTHENTICATE: login failed with status 404, check credentials
2018-08-14 23:16:34,521 [DEBUG] Starting new HTTPS connection (1): simple-note.appspot.com
2018-08-14 23:16:34,614 [DEBUG] https://simple-note.appspot.com:443 "GET /api2/index?email=myemail%2540mydomain.com&length=100 HTTP/1.1" 401 0
2018-08-14 23:16:34,617 [DEBUG] ERROR: Failed to get note list from server
2018-08-14 23:16:34,619 [DEBUG] Full sync completed

I use sncli (on linux) and nvALT (on mac) multiple times per day. Thanks.

samuelallan72 commented 6 years ago

Yes, it's still down unfortunately. I reached out to Simplenote via twitter (link), and subsequently according to their request contacted them via their contact us page. I'll keep everyone posted on any communication I receive from Simplenote/Automattic.

Leaving this issue open so others can find it easily.

roundhill commented 6 years ago

Hi! Would you be able to migrate to using the Simperium API for this project? The API this is currently using hasn't been supported for many years. We can provide an API key that will allow access to Simplenote.

p.s. We'll see if we can fix the old API issue for y'all in the meantime.

roundhill commented 6 years ago

Here's the Simperium HTTP api docs, and we also have a python library.

roundhill commented 6 years ago

p.s. We'll see if we can fix the old API issue for y'all in the meantime.

Should be back up again, thanks for your patience. That said, we will be deprecating the old API in October so a migration to the Simperium API is still needed here.

samuelallan72 commented 6 years ago

Thanks @roundhill !

N0ury commented 6 years ago

I haven't understood everything in this discussion. It is said the issue is temporarily solved. But I still have

2018-08-19 07:45:11,259 [DEBUG] sncli logging initialized 2018-08-19 07:45:12,456 [DEBUG] Sync worker: started 2018-08-19 07:45:12,456 [DEBUG] Starting full sync 2018-08-19 07:45:12,496 [DEBUG] Starting new HTTPS connection (1): simple-note.appspot.com:443 2018-08-19 07:45:12,751 [DEBUG] https://simple-note.appspot.com:443 "POST /api/login HTTP/1.1" 404 154 2018-08-19 07:45:12,755 [DEBUG] AUTHENTICATE: login failed with status 404, check credentials 2018-08-19 07:45:12,757 [DEBUG] Starting new HTTPS connection (1): simple-note.appspot.com:443 2018-08-19 07:45:12,974 [DEBUG] https://simple-note.appspot.com:443 "GET /api2/index?email=nb%2540dagami.org&length=100 HTTP/1.1" 401 0 2018-08-19 07:45:12,977 [DEBUG] ERROR: Failed to get note list from server

qub1750ul commented 6 years ago

Same here

synthetiv commented 6 years ago

Yeah, unfortunately I've been getting similar errors as well. It worked for a day or two after the 15th, then stopped working again.

roundhill commented 6 years ago

An automated process reverted our fix 😬. Should be back up now, thanks again for your patience.

samuelallan72 commented 6 years ago

@qub1750ul @synthetiv also please see tracking issue #64 for future updates on the process of porting sncli to the new api. :)