question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Decode compressed response

See original GitHub issue

I have the following in my conftest.py:

@pytest.fixture(scope="module")
def vcr_config():
    return {
        "cassette_library_dir": f"{TESTS_DIR}/fixtures/cassettes",
        "decode_compressed_response": True,
        "filter_headers": ["authorization"]
    }

But decoding is happening intermittently.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
nomasprimecommented, Jul 3, 2020

I see, very good explanation. Thanks @Stranger6667.

0reactions
Stranger6667commented, Jun 26, 2020

I.e. www.google.com returns responses in different encodings for different user-agents 😃 And then they are stored differently

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decode compressed response - Cassettes - Vcr - Relish
Decode compressed response. When the :decode_compressed_response option is set to a truthy value, VCR will decompress "gzip" and "deflate" response bodies ...
Read more >
GZip Decompress Online to Gzip Decode Text - Code Beautify
Gzip to Decompress tool to gzip decode Online helps to convert Gzip Text to plain Text and helps to save and share Gzip...
Read more >
Decode Compressed Response - VCR - GitBook
When the :decode_compressed_response option is set to a truthy value, VCR will decompress "gzip" and "deflate" response bodies before recording.
Read more >
How to decode the gzip compressed data returned in a HTTP ...
When I get the response from the third server I am not able to decode the gzip compressed data, I first split the...
Read more >
Content-Encoding - HTTP - MDN Web Docs
Content encoding is mainly used to compress the message data without losing information about the origin media type.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found