-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix proxy not returning errors if an image couldnt be fetched (#1229)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Fix proxy error handling for image fetching failures and improve logging in Rust and TypeScript code. > > - **Behavior**: > - `to_base64_with_inferred_mime_type()` in `mod.rs` now returns an error if the response status is not successful, including status and response text. > - `fetch_with_proxy()` in `mod.rs` ensures URL parsing and path extraction are handled correctly. > - **Dependencies**: > - Update `mime_guess` version in `Cargo.toml` to `2.0.5`. > - **Logging**: > - Add logging in `extension.ts` to track proxy request handling and error scenarios. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 5afd5df. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
4 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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