insanum / sncli

Simplenote CLI
MIT License
396 stars 34 forks source link

Can't login to simplenote anymore. [provide more meaningful errors] #32

Closed samuelallan72 closed 7 years ago

samuelallan72 commented 7 years ago

sncli won't login to simplenote for me now. Nothing has changed on sncli's side, so I suspect Simplenote has changed its API.

I get the following in the log:

2016-12-31 15:41:36,336 [DEBUG] sncli logging initialized
2016-12-31 15:41:37,466 [DEBUG] Sync worker: started
2016-12-31 15:41:37,467 [DEBUG] Starting full sync
2016-12-31 15:41:37,470 [INFO] Starting new HTTPS connection (1): simple-note.appspot.com
2016-12-31 15:41:37,992 [DEBUG] "POST /api/login HTTP/1.1" 400 0

I'll look into it as soon as I get time, but in the meantime, interested to see if anyone else has this problem as well?

samuelallan72 commented 7 years ago

My bad - turns out I had changed my credentials and forgotten to update .snclirc... but still, displaying traceback and warnings about an error 400 isn't good behaviour when the credentials are invalid.

My plan now is to improve error handling in the network to give more meaningful errors, so the user can tell what the problem is, whether it be network connectivity, invalid credentials, etc.