Repository navigation
fix(dashboard): accept a 404 that carries an error body - #335
Open
alanpeixinho wants to merge 1 commit into
Open
alanpeixinho wants to merge 1 commit into
alanpeixinho wants to merge 1 commit into
Conversation
A missing resource will come back as 404 with the same error field the API returns as 200 today. Read that body instead of aborting. A 404 without the field still fails the request. Assisted-by: Cursor Grok 4.7 Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
Member
|
we just released v0.1.13, could we wait until next release later this week? |
Contributor
Author
|
Hi @aliceinwire, there is no hurry in that. We expect to hold this change for many weeks, until users have naturally upgraded to newer versions. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The dashboard API will return 404 for a missing resource, with the same
errorfield it returns as 200 today. Read that body instead of aborting, so the message, hints, and--jsonstay the same.A 404 without the field still aborts. Other status codes are unchanged.
The dashboard change is kernelci/dashboard#2265. It should wait until this kci-dev release has reached most users.
@aliceinwire does this look like the right approach, or should we look for another one?
Test plan
{"error": "Build not found"}raisesClickExceptionwith that messageerror, and a 400 still abortMade with Cursor