Skip to content

fix: show upstream error message on ui#1000

Merged
tusharmath merged 9 commits intomainfrom
fix/show-errors-from-upstream-apis
Jun 27, 2025
Merged

fix: show upstream error message on ui#1000
tusharmath merged 9 commits intomainfrom
fix/show-errors-from-upstream-apis

Conversation

@laststylebender14
Copy link
Copy Markdown
Contributor

No description provided.

@laststylebender14 laststylebender14 marked this pull request as ready for review June 25, 2025 05:38
Comment thread crates/forge_provider/src/forge_provider/provider.rs Outdated
assert!(error_string.contains("500"));
assert!(error_string.contains("Internal Server Error"));
assert!(error_string.contains("Failed to fetch the models"));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Asserting in provider doesn't guarantee that we show the same error on the UI. The error message can be modified with more context along the way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

what do you suggest? we don't have UI level tests yet.

@tusharmath tusharmath merged commit 4ccddfd into main Jun 27, 2025
8 checks passed
@amitksingh1490 amitksingh1490 deleted the fix/show-errors-from-upstream-apis branch November 14, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants