How to generate a HAR file
This document (000020177) is provided subject to the disclaimer at the end of this document.
Environment
- Web Browser (Firefox or Chrome)
- A browser that can reproduce the issue, we've covered Chrome and Firefox in this article.
- The issue should be occurring or reproducible at the time of the collection to contain an example of the issue.
Situation
When troubleshooting an issue that is reproducible in a browser, it is sometimes necessary to have additional information about the requests and responses. You may be requested to generate a HAR file recording to capture this and attach this to a ticket for analysis.
Please note, the information collected in a HAR file can contain sensitive data like content, headers, and cookies. This is not always the case, and some information is transient only. However, please check and santise the information as necessary before uploading.
Resolution
Open your browser ready to reproduce the issue.
Shortcut
Using the F12 button you can quickly open the Developer Tools on FireFox and Chrome.
Chrome
- From the menu, select View > Developer > Developer Tools
- From the pane, click on the Network tab
- Locate the Preserve log setting in the upper left and ensure it is checked
- Locate the record button, it should be a red circle to indicate that it is currently recording, if it is grey, click it once to start recording
- Follow any steps needed to reproduce the issue during the recording
- Note: immediately before triggering the action that reproduces the issue, also reload the page (eg. via CTRL+R). For example, if the issue manifests when navigating to a page, then go to the the page containing the link leading to it, first reload the page, and then click to reproduce the issue.
- Once the issue has occurred, right click in the pane and select Save as HAR with Content
Firefox
- From the menu, select Tools > Web Developer > Network
- The recording to start automatically with any further navigation in the browser
- Follow any steps needed to reproduce the issue with the network pane open
- Note: immediately before triggering the action that reproduces the issue, also reload the page (eg. via CTRL+R). For example, if the issue manifests when navigating to a page, then go to the the page containing the link leading to it, first reload the page, and then click to reproduce the issue.
- Once the issue has occurred, right click in the pane and select Save all as HAR
Upload the HAR file
Generally, HAR files are small in size, however if the file are too large to upload directly to the ticket, please request or use the provided temporary upload location.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000020177
- Creation Date: 06-May-2021
- Modified Date:12-Nov-2024
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com