alexx
alexx
CCoder.com
Created by alexx on 11/3/2022 in #help
401 when running coder
Fixed in v0.12.4. Cheers Kyle!
9 replies
CCoder.com
Created by alexx on 11/3/2022 in #help
401 when running coder
Have tried --token or setting the env. variable directly, but it didn't help on my end
9 replies
CCoder.com
Created by alexx on 11/3/2022 in #help
401 when running coder
Yep, logging in doesn't kep in the gitssh case:
coder@coder-alex-alexcodermain:~$ coder login https://<redacted>.try.coder.app
> Welcome to Coder, alex! You're authenticated.
coder@coder-alex-alexcodermain:~$ git clone git@github.com:kelseyhightower/nocode.git
Cloning into 'nocode'...
Cookie "coder_session_token" must be provided. Try logging in using 'coder login <url>'.
Run 'coder gitssh --help' for usage.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
coder@coder-alex-alexcodermain:~$ coder list
WORKSPACE TEMPLATE STATUS LAST BUILT OUTDATED STARTS AT STOPS AFTER
alex/AlexCoderMain puppeteer-linux Started 5m false - -
coder@coder-alex-alexcodermain:~$ coder login https://<redacted>.try.coder.app
> Welcome to Coder, alex! You're authenticated.
coder@coder-alex-alexcodermain:~$ git clone git@github.com:kelseyhightower/nocode.git
Cloning into 'nocode'...
Cookie "coder_session_token" must be provided. Try logging in using 'coder login <url>'.
Run 'coder gitssh --help' for usage.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
coder@coder-alex-alexcodermain:~$ coder list
WORKSPACE TEMPLATE STATUS LAST BUILT OUTDATED STARTS AT STOPS AFTER
alex/AlexCoderMain puppeteer-linux Started 5m false - -
9 replies
CCoder.com
Created by alexx on 11/3/2022 in #help
401 when running coder
Cookie "coder_session_token" must be provided. Try logging in using 'coder login <url>'.
get agent git ssh token: GET https://<redacted>.try.coder.app/api/v2/workspaceagents/me/gitsshkey: unexpected status code 401: Cookie "coder_session_token" must be provided.: Try logging in using 'coder login <url>'.
Run 'coder gitssh --help' for usage.
Cookie "coder_session_token" must be provided. Try logging in using 'coder login <url>'.
get agent git ssh token: GET https://<redacted>.try.coder.app/api/v2/workspaceagents/me/gitsshkey: unexpected status code 401: Cookie "coder_session_token" must be provided.: Try logging in using 'coder login <url>'.
Run 'coder gitssh --help' for usage.
Running Coder v0.11.0+df89e2c
9 replies