This works when you load the HAR file into Chromium and does not work in Firefox. Seems like Firefox does not decode the text resources, even tho we say its base64. The spec does not give any advice when to use base64 and when not, so we use it all the time.
Seems like it needs to be fixed on their (Firefox DevTools) side. Some code pointers:
mxschmitt
changed the title
[BUG] http responses in har files are base64 encoded
[BUG] Firefox DevTools does not decode Playwright's HAR response bodies of text resources
Jan 21, 2022
the reason i used firefox for those screenshots was because in chrome the base64 responses were not being displayed at all, which i assume is somehow related.
when exported from playwright:
when exported manually:
but now that i try this on the google.com example i can't seem to reproduce it, only on the application i'm testing. it only seems to happen with sap batch requests
Context:
System:
Binaries:
Languages:
npmPackages:
Code Snippet
Describe the bug
har file exported by playwright:

har file exported manually:

The text was updated successfully, but these errors were encountered: