Comments (7)
Any updates on this issue - I'm having the same issue and would prefer to use json over yaml for the serializer due to performance issues loading in the yaml file.
from vcrpy.
Maybe a new serializer: base64-encoded json???
For the yaml performance issue - make sure you are using the libyaml c bindings instead of falling back to the pure python implementation - itβs a lot faster.
from vcrpy.
yeah looks like it's having trouble serializing the binary data.
from vcrpy.
Any plan on a fix for this issue
from vcrpy.
Sorry, I've been really busy and haven't had a chance to check it out. Do you have the same problem with the yaml serializer?
On Dec 5, 2013, at 6:03 AM, Raghavendra Kumar [email protected] wrote:
Any plan on a fix for this issue
β
Reply to this email directly or view it on GitHub.
from vcrpy.
It looks like the problem is that JSON can't serialize binary data. The response contains the binary zip file, which can't be encoded into UTF-8.
I'm not sure what the solution here is. I could base64 encode the response string, but that would break backwards compatibility with old JSON cassettes as well as defeat the ability to open the cassette file to inspect the response for debugging purposes.
from vcrpy.
Sorry forgot to mention, it does work with yaml
from vcrpy.
Related Issues (20)
- Integration tests fail with httpbin 0.10.0 HOT 3
- AIOHTTP not recording json body HOT 1
- How to run tests HOT 2
- [BUG] Doesn't work for URL's beginning with www.
- How is vcrpy importing from a parent directory in a test file HOT 1
- AttributeError: 'VCRHTTPResponse' object has no attribute 'json' HOT 2
- Add type annotations
- Backport patch to fix test failures with Python 3.12: AttributeError: type object 'VCRHTTPConnection[β¦]' has no attribute 'debuglevel' HOT 1
- [Duplicate of #719?] Upgrading to VCR.py that uses urllib3 v2+ causes string decoding problems with requests HOT 2
- π οΈ Custom Persister HOT 1
- Release 6.0.0 to allow users to update to Python 3.12? HOT 20
- `TypeError: cannot pickle 'generator' object` with urllib 2.1.0, no error with urllib 1.26.18
- [Question] Would it make sense to support glob in `filter_headers`
- VCRHTTPResponse should have a `release_conn()` method
- record creation failed when using async HOT 2
- 'VCRHTTPConnection/...' has no attribute 'debuglevel'. Did you mean: 'set_debuglevel'
- Bug Report: Installation Failure of vcrpy>=5.0.0 in Conda Environment HOT 1
- Exception httpx.ResponseNotRead thrown randomly when using cassettes HOT 1
- Httpx Response content is not set/read, causing JSON parsing errors
- Allow to disable or limit `find_requests_with_most_matches`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vcrpy.