In this article, I’m going to share how to capture and download a network trace file (.HAR) for analyzing any errors displayed on IBM Cloud services.
The network trace file is often requested by support engineers during their investigation, so if you attach it when you raise a case, it can help expedite the process.
Capturing the network trace file on Google Chrome
- Open Google Chrome and go to the page where the issue is occurring.
- From the Chrome menu bar, select View > Developer > Developer Tools.
- From the panel that opens, select the Network tab.
- Look for a round record button in the upper-left corner of the tab, and make sure it is red. If it is grey, click it once to start recording.
- Check the Preserve log box.
- Click the Clear button to clear out any existing logs from the Network tab.
- Reproduce the issue you are having.
- Once you have reproduced the issue, right-click anywhere on the grid of network requests, select Save all as HAR with content, and save the file to your computer.
Capturing the network trace file on 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 opens as a docked panel at the side or bottom of Firefox. Make sure you are on the Network tab.
- The recording starts automatically when you start performing actions in the browser. Click on the trashcan icon to clear everything first.
- Reproduce the issue you are experiencing on the UI.
- Once you have reproduced the issue and you see that all of the actions have been generated in the Developer Network Panel (should just take a few seconds), right-click anywhere under the File column and click on Save All As HAR.
Summary
By following the steps outlined above, you can forward the .HAR file to the support team to expedite the support process. It can also help troubleshoot UI problems in your own Cloud Foundry app.