Skip to content

Unhelpful 403 message when starting/deleting a workspace that doesn't exist #1899

Closed
@bpmct

Description

@bpmct

OS Information

  • OS: Darwin
  • Browser (if applicable): CLI bug
  • Architecture: amd64
  • coder --version:
    Coder v0.6.0+841d9f2 Wed May 25 21:58:00 UTC 2022
    https://github.com/coder/coder/commit/841d9f277cd62f9cf89c241ad9f1aa134fd8fc92

Steps to Reproduce

  1. run coder workspace delete this-workspace-does-not-exist

Expected

~ coder start does-not-exist 
> Confirm start workspace? (yes/no) yes
status code 403: forbidden. This workspace does not exist, or you do not have access to it
Run 'coder start --help' for usage.

Actual

~ coder start does-not-exist 
> Confirm start workspace? (yes/no) yes
status code 403: forbidden          
Run 'coder delete --help' for usage.

Metadata

Metadata

Assignees

Labels

apiArea: HTTP APIcliArea: CLI

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions