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

Ensure frontend displays errors when getting 400 from the server #2129

Open
r4victor opened this issue Dec 23, 2024 · 0 comments
Open

Ensure frontend displays errors when getting 400 from the server #2129

r4victor opened this issue Dec 23, 2024 · 0 comments

Comments

@r4victor
Copy link
Collaborator

The server returns 400 errors with the following body:

{
    "detail": [
        {
            "msg": "Backend aws has active instances. Delete instances before deleting the backend.",
            "code": "error"
        }
    ]
}

The frontend should by default display an error notification when getting such response from the server. Currently, 400 responses are ignored in many places.

For example, the frontend should show an error when deleting a backend fails (#2114 will make it an error to delete a backend with active instances).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant