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

fix: 3986 - invalid request should show clear error message #4119

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

louis-jan
Copy link
Contributor

Describe Your Changes

The error message for an invalid request is not handled correctly. Instead of displaying a clear error message from the provider, it prompts users about an invalid API key error.

Fixes Issues

Changes made

The provided git diff shows a modification in the index.tsx file located in the web/containers/ErrorMessage directory. Specifically, the change involves removing a single case from a switch statement. The case that has been removed is:

case ErrorCode.InvalidRequestError:

This change means that the ErrorMessage component will no longer handle the InvalidRequestError by displaying a specific error message (i.e., an invalid API key error), which was part of the switch statement before this modification.

@louis-jan louis-jan requested a review from urmauur November 25, 2024 12:59
@github-actions github-actions bot added the type: bug Something isn't working label Nov 25, 2024
Copy link
Contributor

github-actions bot commented Nov 25, 2024

Barecheck - Code coverage report

Total: 69.18%

Your code coverage diff: 0.00% ▴

Uncovered files and lines
FileLines
web/containers/ErrorMessage/index.tsx38, 40-41, 44

@louis-jan louis-jan force-pushed the fix/invalid-request-should-not-show-invalid-api-key branch from f6bbc34 to 60a888c Compare November 26, 2024 11:54
@louis-jan louis-jan merged commit b046ee3 into dev Nov 26, 2024
9 checks passed
@louis-jan louis-jan deleted the fix/invalid-request-should-not-show-invalid-api-key branch November 26, 2024 12:54
@github-actions github-actions bot added this to the v0.5.10 milestone Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants