Skip to content

fix(huggingface_hub): Stop swallowing exceptions during stream iteration - #8018

Merged
alexander-alderman-webb merged 1 commit into
getsentry:masterfrom
intertermux-code:fix/7889-huggingface-hub-stream-iteration-errors
Oct 13, 2026
Merged

alexander-alderman-webb merged 1 commit into
getsentry:masterfrom
intertermux-code:fix/7889-huggingface-hub-stream-iteration-errors

Conversation

@intertermux-code

Copy link
Copy Markdown
Contributor

Fixes #7889.

Split out of #7946 per review — this one covers the huggingface_hub integration only. Mid-stream provider exceptions raised by the text-generation and chat-completion iterators were swallowed by the outer capture_internal_exceptions(); they now bubble out to the caller while the span is still closed out.

Split out of getsentry#7946 per review. Mid-stream provider exceptions raised
by the text-generation and chat-completion iterators were swallowed
by the outer capture_internal_exceptions(); they now bubble out to
the caller while the span is still closed out.
@intertermux-code
intertermux-code requested a review from a team as a code owner October 13, 2026 11:26
@alexander-alderman-webb

Copy link
Copy Markdown
Collaborator

I'll close this until we agree on an approach in #8017

@alexander-alderman-webb alexander-alderman-webb changed the title fix(huggingface_hub): stop swallowing stream iteration errors fix(huggingface_hub): Stop swallowing exceptions during stream iteration Oct 13, 2026
@alexander-alderman-webb
alexander-alderman-webb enabled auto-merge (squash) October 13, 2026 11:52
@alexander-alderman-webb
alexander-alderman-webb merged commit 7e8594c into getsentry:master Oct 13, 2026
310 of 318 checks passed
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.

Hugging Face Hub and Cohere integrations swallow errors raised while iterating a stream

2 participants