fix: treat all failed lyrics search responses as no results - #188
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
composer | 00dd240 | Commit Preview URL Branch Preview URL |
Aug 30 2026, 06:39 PM |
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
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.
Overview
A search where the only provider to respond errored (Portato hitting a QQ
429/503, say) used to blow up the whole panel with a red "Better Lyrics Portato: ... rate limit reached ・ Try adjusting your search" screen, even though the real answer was just "no lyrics for this track". Confusing, especially when the query was fine and the backend was the problem.Now every provider treats any failed fetch as an empty result. All 4xx and all 5xx (no more special-casing
429or throwing on5xx), plus network and parse failures, resolve to no results and log a single line to the console instead of throwing. A plain404miss stays silent since that is the ordinary empty case.With providers no longer throwing, the search UI is purely results-driven: show results if any, otherwise the existing "No matches" screen. Dropped the now-dead error screen, the "Search failed" status, and the
isClientErrorhelper the old subset approach needed.