vscode-coder icon indicating copy to clipboard operation
vscode-coder copied to clipboard

Confusing error connecting to workspace marked "pending deletion"

Open aaronlehmann opened this issue 1 year ago • 1 comments

Trying to connect to a workspace which is pending deletion results in this error:

API POST to 'https://<host>/api/v2/workspaces/fbcd97fa-2b0f-4eea-87fd-c3b343633071/builds' failed.
Status code: 403
Message: insert workspace build
Detail: authorize context: unauthorized: rbac: forbidden

Reactivating the workspace makes it possible to connect.

Ideally this would remove the pending deletion automatically, or inform the user how to do so.

aaronlehmann avatar Sep 17 '24 23:09 aaronlehmann

I think ideally the user shouldn't be allowed to connect to a workspace pending deletion. We can improve the messaging to inform the user why it's forbidden.

Alternatively we can inform the user of the pending deletion and prompt them if they want to cancel deletion and start the workspace.

matifali avatar Sep 18 '24 07:09 matifali