You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the first issue that you'll have is that if you're getting a cached response (status 304), then Mockbin will return an empty response body. Ok, fair enough.
So if we check the disable cache checkbox and generate a har file from that, then when we try to retrieve the response we get a CONTENT_DECODING_FAILED 200 (OK) error.
Note that Chrome and Firefox appear to behave differently with respect to the body size property, but the har generated from both has the same issue.
The text was updated successfully, but these errors were encountered:
dwjohnston
changed the title
Decompression failed when trying to use a har that was generated using 'preserve cache'.
Decompression failed when trying to use a har that was generated using 'disable cache'.
Aug 12, 2023
Note that if we remove all the headers and set headersSize to 0, it'll work - so I suspect that one of these headers is not playing nicely with Mockbin.
I want to generate a HAR file for a request from this endpoint: https://jsonplaceholder.typicode.com/users
Note that the first issue that you'll have is that if you're getting a cached response (status 304), then Mockbin will return an empty response body. Ok, fair enough.
So if we check the
disable cache
checkbox and generate a har file from that, then when we try to retrieve the response we get aCONTENT_DECODING_FAILED 200 (OK)
error.Relevant part of the har file:
Chrome
Firefox
Note that Chrome and Firefox appear to behave differently with respect to the body size property, but the har generated from both has the same issue.
The text was updated successfully, but these errors were encountered: