Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: avoid returning 500 on apps when workspace stopped#11656

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sreya merged 2 commits intomainfromjon/stoppedapps
Jan 17, 2024

Conversation

sreya
Copy link
Collaborator

@sreyasreya commentedJan 17, 2024
edited
Loading

Currently we return a 500 error when trying to access workspace apps when a workspace is in the stopped state. This is mainly because we weren't wrappingsql.ErrNoRows when no workspace agents are returned. In such cases we want to return a404 which makes sense since we can't find the agent we want to route it to; however, this is more an implementation detail and would be confusing to the user in the majority of cases where the agents are "destroyed" due to terraform. I added a400 for the case where the workspace is stopped to help the error be a bit more informative to the user.

fixes#11106

Screenshot 2024-01-16 at 6 52 20 PM

MrPeacockNLB reacted with thumbs up emoji
Copy link
Member

@EmyrkEmyrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

nice 👍

@sreyasreya merged commit552e9fe intomainJan 17, 2024
@sreyasreya deleted the jon/stoppedapps branchJanuary 17, 2024 18:07
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 17, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@EmyrkEmyrkEmyrk approved these changes

Assignees

@sreyasreya

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

/apps/{workspaceapp}/* route being hit after workspace is stopped
2 participants
@sreya@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp