autolab / Autolab-CLI

Command line autolab client that uses the Autolab API
3 stars 2 forks source link

Invalid subcommands return "Authorization invalid" error #3

Closed TheodorJ closed 6 years ago

TheodorJ commented 6 years ago

I tried running "autolab course" (forgetting the 's' in "courses") and received the following error:

[ContextManager] tokens loaded fatal: Cannot start autolab client Authorization invalid or expired.

Please re-authorize this client by running 'autolab-setup'

This works when running any subcommand that isn't valid. It's not disastrous, but it is misleading.

zyx-billy commented 6 years ago

Is this still happening? I tried it on the latest master and the error is "Unrecognized command: course". Perhaps this was something that happened halfway through refactoring?

TheodorJ commented 6 years ago

It's still happening to me -- Could it maybe be because I'm running in debug mode?

zyx-billy commented 6 years ago

seems to be fixed in #4