snipsco / snips-issues

Feel free to share your bugs with us.
14 stars 5 forks source link

✖ Error: No credentials found #139

Closed probonopd closed 5 years ago

probonopd commented 5 years ago

What's the issue?

root@snips:~# sam login
? Enter email used on the console: (...)
? Enter password used on the console: [hidden]
✔ Logged in
root@snips:~# sam install assistant
✖ Error: No credentials found

Use Cases Impacted See above

How to reproduce See above

Expected behavior Can log in and install assistant

Version and Environment How do I find out the installed snips version?

root@snips:~# sam --version
0.0.52
probonopd commented 5 years ago
root@snips:~# sam logout
✔ Logged out

root@snips:~# sam login
? Enter email used on the console: (...)
? Enter password used on the console: [hidden]
✔ Logged in

root@snips:~# sam status
✖ No credentials found
probonopd commented 5 years ago

Workaround: Running root@snips:~# sam connect localhost (again?). Why?

nebuto commented 5 years ago

Hello @probonopd

sam login is to login on the console sam connect localhost is to connect to your Pi via ssh The missing credentials are for the ssh connection.

Both are required when performing sam install assistant. Thus the error. It will fetch assistant list on the console, train your assistant, download it and then upload it to your Pi.

The error message could be clearer though.

probonopd commented 5 years ago

Thanks @nebuto. I don't quite understand why ssh is used to communicate with localhost, but ok.

What would be helpful, though, is to not just print ✖ Error: No credentials found but also tell the user what to do.

cpoisson commented 5 years ago

Closing this one, Thanks for your feedbacks!