Skip to content
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

Confusing error connecting to workspace marked "pending deletion" #359

Open
aaronlehmann opened this issue Sep 17, 2024 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@aaronlehmann
Copy link
Contributor

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.

@coder-labeler coder-labeler bot added bug help wanted Extra attention is needed labels Sep 17, 2024
@matifali
Copy link
Member

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 matifali removed the bug label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants