Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot create token #4411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jaulz opened this issue Oct 7, 2022 · 4 comments
Closed

Cannot create token #4411

jaulz opened this issue Oct 7, 2022 · 4 comments

Comments

@jaulz
Copy link

jaulz commented Oct 7, 2022

Seeing the new token feature I immediately gave it a try but it seems it's not working:

$ coder version                                                                                                                                                                                                                149ms
Coder v0.9.7+3049a56 Fri Oct  7 01:59:25 UTC 2022
https://github.com/coder/coder/commit/3049a56355cf95efb4b630c4b1c0aa2edb8e8145

$ coder tokens create --verbose                                                                                                                                                                                                259ms
.                                          
create tokens: unexpected status code 405: 
Run 'coder tokens create --help' for usage.

$ coder tokens list                                                                                                                                                                                                            295ms
Resource not found or you do not have access to this resource. 
Run 'coder tokens list --help' for usage.
@bpmct bpmct added the waiting-for-info The issue creator is asked to provide more information. label Oct 7, 2022
@bpmct
Copy link
Member

bpmct commented Oct 7, 2022

Hmm, I was not able to reproduce this on main or v0.9.7. Were there any server logs?

@f0ssel any ideas?

@bpmct
Copy link
Member

bpmct commented Oct 7, 2022

It's important to note that the coder server should be on the same version (v0.9.7) as the client.

The footer on the dashboard is a good way to see the version of the server.

@jaulz
Copy link
Author

jaulz commented Oct 7, 2022

I'm so sorry! I pushed my Docker image but forgot to explicitly build it and thus it was on the old version. Thanks for the tip with the footer.

@jaulz jaulz closed this as completed Oct 7, 2022
@bpmct
Copy link
Member

bpmct commented Oct 7, 2022

No worries glad you got it working!

I think we usually surface a version mismatch error in the CLI. (#2643). Perhaps it doesn't show in some cases when a command fails.

@bpmct bpmct removed the waiting-for-info The issue creator is asked to provide more information. label Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants