Question
I'm trying to export a HAR file from Chrome but it is returning a file with zero bytes, why is that?
Answer
Google recently made changes that require adjustments so that files containing sensitive data can be downloaded. Failure to make these adjustments may result in an empty HAR file.
For more information, see the Google announcement: What's new in DevTools, Chrome 130
To enable HAR exports with sensitive data
- Open Chrome.
- Look for the ⋮ button and select More Tools > Developer Tools.
- Click Preferences > Network.
- Select the Allow to generate HAR (with sensitive data) check box.
- Return to the Network panel and long-click the Export button marked with an arrow.
- Select Export HAR (with sensitive data) from the drop-down menu.
For more information, see this article: Generating a HAR file for troubleshooting.