What is a HAR file
Sometimes, when troubleshooting complex issues, a member of the Learnosity support team will ask you to provide a HAR file.
A HAR file, or HTTP Archive format, is used for tracking all interactions between a web browser and a website. This information is stored in a JSON file which is easy to read and helps visualise a large amount of data. Specifically, this data is a log of network requests that can capture the details of any errors as they occur.
For that reason, it is often used for identifying performance issues such as increased loading times, page rendering difficulties and error codes that might result from these problems.
As such, HAR files provide a lot of information about HTTP requests that help with debugging, for example browser settings and cookies, the amount of time spent receiving response data, how long it took to establish a server connection or how long before a request could be sent.
Please note that HAR files can contain sensitive data. No Learnosity staff member will ask for such a file unless you have raised a support issue or reported an error.
To generate the HAR file for Chrome
- Open Google Chrome and go to the page where the issue is occurring.
- On the Chrome menu bar select View > Developer > Developer Tools.
- From the panel opened at the bottom of your screen, select the Network tab.
- Look for a round Record button in the upper left corner of the Network tab, and make sure it is red. If it is grey, click it once to start recording.
- Check the box next to Preserve log.
- Click the Clear button to clear out any existing logs from the Network tab.
- Now try to reproduce the issue that you were experiencing before, while the network requests are being recorded.
- Once the issue has been reproduced, right-click anywhere on the grid of network requests, select Save as HAR with Content.
- Save the HAR file to your desired location.
- Upload your HAR file to your ticket so that we may analyze it.
To generate the HAR file for Firefox
- Open Firefox and go to the page where the issue is occurring.
- Select the Firefox menu (three horizontal parallel lines) at the top-right of your browser window, then select Web Developer > Network.
- The Developer Network Tools will open as a docked panel at the side or bottom of Firefox. Click on the Network tab.
- Check the box next to Persist Logs.
- The recording will autostart once you start performing actions in the browser.
- Once the issue has been reproduced, right-click anywhere on the grid of network requests, select Save as HAR with Content.
- Save the HAR file to your desired location.
- Upload your HAR file to your ticket so that we may analyze it.
To generate the HAR file for Safari
- Open Safari and go to the page where the issue is occurring.
- Open the Preferences and select the Advanced tab.
- Ensure that Show Develop menu in menu bar is ticked.
- Open the Develop menu and select Show Web Inspector.
- Activate the Network tab.
- Check the box next to Preserve log.
- Complete the activity that is causing issues.
- Click the Export icon and save the web archive file.
- Upload your HAR file to your ticket so that we may analyze it.
To generate the HAR file for Internet Explorer
- Press F12 on your keyboard(or click the gear icon > F12 Developer Tools)
- Click the Network tab.
- Reproduce the issue that you were experiencing before, while the network requests are being recorded.
- Once done click the Save button.
- Give the trace a filename and click the Save button which will save it as a .har file.
- Upload your HAR file to your ticket so that we may analyze it.