Skip to content

fix: re-key stream chunks for AsyncResponse compatibility#35

Merged
jstojiljkovic merged 2 commits into
masterfrom
bug/async-response-bug
May 10, 2026
Merged

fix: re-key stream chunks for AsyncResponse compatibility#35
jstojiljkovic merged 2 commits into
masterfrom
bug/async-response-bug

Conversation

@jstojiljkovic

Copy link
Copy Markdown
Collaborator

Fixes TraceableHttpClient::stream() not re-keying chunks back to TracedResponse wrappers, which caused UnexpectedValueException when used with RetryableHttpClient or any decorator using AsyncResponse internally.

Closes #34

@jstojiljkovic jstojiljkovic self-assigned this May 10, 2026
@jstojiljkovic
jstojiljkovic merged commit 71df8cd into master May 10, 2026
5 checks passed
srekcud added a commit to srekcud/opentelemetry-symfony-bundle that referenced this pull request May 10, 2026
Without the SplObjectStorage map, chunks yielded by the inner client are
keyed on the bare response, so RetryableHttpClient (or any decorator
above this one) cannot look up the wrapper it handed in and Symfony's
AsyncResponse throws "UnexpectedValueException: Object not found".
Mirrors the fix applied to TraceableHttpClient in tracewayapp#35.
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.

[Bug]: UnexpectedValueException: Object not found in /app/vendor/symfony/http-client/Response/AsyncResponse.php

1 participant