-
Notifications
You must be signed in to change notification settings - Fork 418
Open
Description
I am using hishel for HTTP caching. hishel can inject an httpx.AsyncByteStream.
This leads to a failure with VCR.py where:
- In
stubs/httpx_stubs.py,_async_vcr_sendcalls_shared_vcr_send: https://github.com/kevin1024/vcrpy/blob/v7.0.0/vcr/stubs/httpx_stubs.py#L149-L150 _shared_vcr_sendcalls_make_vcr_request, which does a syncread: https://github.com/kevin1024/vcrpy/blob/v7.0.0/vcr/stubs/httpx_stubs.py#L108- The sync
readwill then throw anAssertionErrordue to not being a syncIterable: https://github.com/encode/httpx/blob/0.28.1/httpx/_models.py#L473
Basically the request is, can VCR.py not use a sync read from within _async_vcr_send as it's not always compatible
Metadata
Metadata
Assignees
Labels
No labels