coder-v1-cli icon indicating copy to clipboard operation
coder-v1-cli copied to clipboard

Wrong auth url from cli on login

Open stockmind opened this issue 3 years ago • 0 comments

Hello guys,

i've just installed latest coder (Coder v0.8.13+ad24404) on a dokku server. The app launch and seems to work fine.

My problem arise when i try to login with the coder CLI from macOS:

Your browser has been opened to visit:

	https://mydomain/internal-auth?show_token=true

The provided link doesn't exists, and gives me a 404:

404
This page could not be found.

Doing some research i can see that the correct url seems to be:

https://mydomain/cli-auth

And this page provides me a token.

The CLI is outdated? I've done something wrong?

I must also admit that even after providing the token i get this error right after, so i'm basically stuck:

warning: version mismatch detected
  | Coder CLI version: v1.34.0
  | Coder API version: unknown
  |
  | tip: download the appropriate version here: https://github.com/coder/coder-cli/releases
  | tip: alternatively, run `coder update`
fatal: login error: ping API with credentials: call api: &{   false  false       []    false   <nil>} (*models.UserWithUXState) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface

But maybe this latest error is a configuration issue on my side?

stockmind avatar Sep 07 '22 21:09 stockmind