HAR files web requests and web traffic

How to generate HAR Files and analyze web requests for troubleshooting
  • Chat

When troubleshooting complex issues, our support engineers sometimes needs to get some additional information from you to investigate further. For example, when we receive a report of performance trouble when using the Conversational Cloud, many different factors may contribute to the problem. We need more data to narrow down the cause of the performance problem.

Google Chrome, in particular, makes it relatively easy to capture all the data we need using what's called a HAR file. For this reason, we may ask you to generate a HAR file to help troubleshoot the trouble you're experiencing. Please see the following directions for how to generate a HAR file.

Below are instructions for generating a HAR file from different browsers.

Generating a HAR File from Google Chrome

Chrome can generate HAR files using the Chrome Developer Tools. To learn more about Chrome's developer tools, see Chrome DevTools Overview.

  1. Open Chrome and enable the Developer Tools from Tools-->Developer Tools.
  2. Select the Network tab.
  3. Check “Preserve log” and “Disable cache”
  4. Load the page with the issue.
  5. Please refresh the browser's active tab and capture a full page load so we can see the requests made before the problem we're analyzing. Note: This is required in order to capture websocket traffic.
  6. Complete the steps that trigger or demonstrate your issue.
  7. Click on the "Export HAR" button 
  8. Check the HAR file:
    • Open another Chrome instance
    • Enable its Developer Tools
    • Select the Network tab
    • Drag and drop the HAR file to check that Chrome has saved it correctly
  9. Zip and send the file to the Support case.

Opening Chrome Developer Tools for "Shared Workers"

When asked for a HAR file related to a "Shared Worker" in Google Chrome, follow these steps:

  1. Load the page with the issue.
  2. Visit chrome://inspect/#workers (copy and paste this into a new tab of Google Chrome).
  3. Click inspect on the applicable shared worker (see screenshot for an example of Salesforce Connector)
Image

Inspect Shared Worker for Salesforce Connector in Google Chrome

Continue with Step 2 of the general instructions for "Generating a HAR file from Google Chrome".

Generating a HAR File from Firefox

Firefox can generate HAR files using the Chrome Developer Tools. To learn more about Firefox's developer tools, see Firefox DevTools Overview.

  1. Open Firefox and enable the Developer Tools from Menu-->Web Developer-->Toggle Tools.
  2. Select the Network tab.
  3. Check “Persist Logs” and “Disable cache”
  4. Load the page with the issue.
  5. Please refresh the browser's active tab and capture a full page load so we can see the requests made before the problem we're analyzing. Note: This is required to capture websocket traffic.
  6. Complete the steps that trigger or demonstrate your issue.
  7. Right-click the Development Tool on one of the requests on the left and select “Save all as HAR with content”.
  8. Check the HAR file:
    • Open another Firefox instance
    • Enable its Developer Tools
    • Select the Network tab
    • Drag and drop the HAR file to check that Firefox has saved it correctly
  9. Zip and send the file to the Support case.

Generating a HAR File for Microsoft Edge

Edge can generate HAR files using the Chrome Developer Tools. To learn more about Edge's developer tools, see Edge DevTools Overview.

  1. Open Edge and enable the Developer Tools from Tools-->Developer Tools.
  2. Select the Network tab.
  3. Check “Preserve log” and “Disable cache”
  4. Load the page with the issue.
  5. Please refresh the browser's active tab and capture a full page load so we can see the requests made before the problem we're analyzing. Note: This is required to capture websocket traffic.
  6. Complete the steps that trigger or demonstrate your issue.
  7. Right-click the Development Tool on one of the requests on the left and select “Save all as HAR with content”.
  8. Check the HAR file:
    • Open another Edge instance
    • Enable its Developer Tools
    • Select the Network tab
    • Drag and drop the HAR file to check that Edge has saved it correctly
  9. Zip and send the file to the Support case.

Opening Edge Developer Tools for "Shared Workers"

When asked for a HAR file related to a "Shared Worker" in Microsoft Edge, follow these steps:

  1. Load the page with the issue.
  2. Visit edge://inspect/#workers (copy and paste this into a new tab of Microsoft Edge).
  3. Click inspect on the applicable shared worker (see screenshot for an example of Salesforce Connector)
Image

Inspect Shared Worker for Salesforce Connector in Microsoft Edge

Continue with Step 2 of the general instructions for "Generating a HAR file from Microsoft Edge".

Network Issues

Microsoft's Using Windows Internet Explorer Developer Tools Network Capture KB can be used to identify how to diagnose network issues.

Providing Information to Support

  1. Open IE and enable the Developer Tools by pressing F12 or from the Cog menu icon
  2. Select the Network tab.
  3. To persist the logs through page refreshes make sure this button is set to OFF
  4. Press the green triangle to start recording network traffic
  5. Load the page with the issue.
  6. Please capture a full page load so we can see the requests made prior to the problem we're analyzing.
  7. Complete the steps that trigger or demonstrate your issue.
  8. Click on the floppy disk icon to save
  9. Zip and send the file to the Support case.

Generating a HAR File from Safari

Safari comes with its own Safari Web Development Tools.

Recording web traffic with Fiddler

Note:
Fiddler is not part of LivePerson's product set. Although we recommend using it, LivePerson does not provide support for Fiddler.

Instructions:

The two main steps required to record web traffic with Fiddler are:

  • Setting Up Fiddler
  • Recording a Session

How to set up fiddler

Before recording a session, make sure the HTTPS option is checked as follows:

  1. Download Fiddler (free software) from Download Fiddler Web Debugging Tool for Free by Telerik.
  2. Open Fiddler and click Tools -> Fiddler Options.
    1. Click the HTTPS tab.
    2. Select the options Capture HTTPS CONNECTS and Decrypt HTTPS traffic; then click OK to complete the setup.
    3. On the WARNING: Sharp Edges window that opens, click Yes to trust the Fiddler Root Certificate.
    4. On the Security Warning window, click Yes to install the Fiddler Root Certificate.

Recording a session

  1. Click File -> Capture Traffic to begin capturing traffic.
  2. Once you've finished recording, click File -> Save -> All Sessions.
    • If a Privacy Notice displays, click OK to approve. (A notice may display, the first time you save a session.)
    • Enter a name for the recording file and click Save. The session is saved to the file you specified.

Missing Something?

Check out our Developer Center for more in-depth documentation. Please share your documentation feedback with us using the feedback button. We'd be happy to hear from you.