What is a HAR file?
A HAR file is a log of all network requests and responses made by a web browser during a browsing session. Our team may ask fans to provide HAR files when troubleshooting because the HAR files can help our development teams diagnose unexpected technical issues that may occur when using NBA.com.
The steps to generate a HAR file for commonly used browsers are provided below.
Chrome
- Visit the page where you are experiencing trouble
- Open the Chrome menu (⋮) at the top-right of your browser window, then select Tools > Developer Tools. The Developer Tools will open as a docked panel at the side or bottom of Chrome.
- Click on the Network tab. Select the option to Preserve log.
- The recording should autostart and you will see a red circle at the top left of the Network tab. If not, click the black circle to start recording activity in your browser and refresh the page you are on. The goal is to replicate the problem you've been experiencing while Google Chrome is recording activity.
- Once you've encountered the problem successfully while recording, right-click within the Network tab and click Save as HAR with Content to save a copy of the activity that you recorded.
Firefox
- Visit the page where you are experiencing trouble
- Select the Firefox menu (Three horizontal parallel lines) at the top-right of your browser window, then select More Tools > Web Developer Tools. The Web Developer Tools will open as a docked panel at the side or bottom of Firefox.
- Click on the Network tab. Before starting the capture, be sure to enable Persistent Logs. This option is accessible after clicking on the gear icon via the Web Developer Tools toolbar.
- The recording will autostart once you start performing actions in the browser. If not, refresh the page you are on. The goal is to reproduce the problem you've been experiencing while Firefox is recording activity.
- Once you have reproduced the issue and you see that all of the actions have been generated in the Developer Network Panel, right-click anywhere under the "File" column and click on "Save All as Har"
Safari
- Visit the page where you are experiencing trouble
- Select the Developer menu, then select Show Web Inspector
- Click on the Network tab.
- The recording will autostart once you start performing actions in the browser. If not, refresh the page you are on. The goal is to reproduce the problem you've been experiencing while Firefox is recording activity.
- Once you have reproduced the issue, click the Export icon and save the HAR file
Edge
- Visit the page where you are experiencing trouble
- Select the Edge menu (⋮), then select More Tools > Developer Tools
- Click on the Network tab.
- The recording will autostart once you start performing actions in the browser. If not, refresh the page you are on. The goal is to reproduce the problem you've been experiencing while Edge is recording activity.
- Once you have reproduced the issue, right click within the Network tab and select "Save all as HAR"