# Generating a HAR file

Stanza support may occasionally need additional information about the network requests that are generated in your browser. A member of the team may ask you to record a HAR file, or a log of network requests, while that issue occurs.&#x20;

{% hint style="success" %}
**Note:** A HAR file includes data such as the content of your cookies and the pages you downloaded while making the recording. Anyone with access to the HAR file can view the data submitted while recording, which may include personal data or other sensitive data. Make sure that you secure your HAR files accordingly. Cloudflare has released [a HAR sanitizer](https://blog.cloudflare.com/introducing-har-sanitizer-secure-har-sharing/) that can be used to strip any sensitive information.
{% endhint %}

### Instructions for generating HAR files <a href="#h_01hrfhnxrb4yh4bmmgn6veaywb" id="h_01hrfhnxrb4yh4bmmgn6veaywb"></a>

Read the instructions below to generate a HAR file and console logs in the browser that you use.&#x20;

**Generate a HAR file in Chrome**

1. Open Chrome and go to the page where the issue is occurring.
2. Look for the **⋮** button and select **More Tools > Developer Tools**.
3. From the panel that appears, select the **Network** tab. You must keep the menu open while you reproduce the issue.&#x20;
4. 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 the button once to start recording.
5. If it isn't, check the **Preserve log** box.
6. Click the grey crossed circle button to clear any existing logs from the network tab.
7. Reproduce the issue while the network requests are recorded.
8. Click the download button, **Export HAR**, to download, and save the file to your computer: **Save as HAR with Content**.<br>

   ![Download button from Network Tab in Chrome](https://support.zendesk.com/hc/article_attachments/7856386049818)
9. Email the HAR file to support.

{% hint style="warning" %}
For any issues generating this file, see this article from Google's Help Center: [Capture web session traffic](https://support.google.com/admanager/answer/10358597?hl=en).
{% endhint %}

<details>

<summary>Why is my generated HAR file empty?</summary>

Google recently made changes that require adjustments so that files containing sensitive data can be downloaded. Failure to make these adjustments may result in an empty HAR file.

For more information, see the Google announcement: [What's new in DevTools, Chrome 130](https://developer.chrome.com/blog/new-in-devtools-130?hl=en)

**To enable HAR exports with sensitive data**

1. Open Chrome.
2. Look for the **⋮** button and select **More Tools > Developer Tools**.
3. Click **Preferences > Network**.
4. Select the **Allow to generate HAR (with sensitive data)** check box.
5. Return to the **Network** panel and long-click the **Export** button marked with an arrow.
6. Select **Export HAR (with sensitive data)** from the drop-down menu.<br>

   <figure><img src="https://support.zendesk.com/hc/article_attachments/8300453324954" alt=""><figcaption></figcaption></figure>

</details>

**Generate a HAR file in Firefox**

1. Open Firefox and go to the page where the issue is occurring.
2. Open the [Network Monitor](https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/#opening-the-network-monitor).
3. Reproduce the issue while the network requests are recorded.
4. Right-click anywhere under the **File** column and click **Save All As HAR**.<br>

   ![Save All As Har in firefox](https://support.zendesk.com/hc/article_attachments/7856386050330)
5. Save the HAR file somewhere convenient.
6. Email the HAR file to support.

{% hint style="warning" %}
For any issues generating a HAR file in Firefox, see this article from Firefox Source Docs: [Network Monitor](https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/index.html#opening-the-network-monitor).
{% endhint %}

**Generate a HAR file in Safari**

1. Open Safari and go to the **Develop** menu. If you don't see the **Develop** menu, follow the instructions in this article from the Safari User Guide: [Use the developer tools in the Develop menu in Safari on Mac](https://support.apple.com/en-ie/guide/safari/sfri20948/mac).
2. Select **Show Web Inspector**.
3. Click the **Network** tab. You must keep it open while you reproduce the issue.
4. Reproduce the issue while the network requests are recorded.
5. Click the **Export** icon and save the HAR file.<br>

   <figure><img src="https://support.zendesk.com/hc/article_attachments/7856386050714" alt=""><figcaption></figcaption></figure>
6. Email the HAR file to support.

{% hint style="warning" %}
For any issues generating a HAR file in Safari, see this article from Safari Developer website: [Web Inspector](https://developer.apple.com/safari/tools/#current).
{% endhint %}

**Generate a HAR file in Edge**

1. Open Edge and go to the [Network tool](https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/network/#open-the-network-tool).
2. Reproduce the issue while the network requests are recorded.
3. Export captured traffic as a HAR file.
4. Email the HAR file to support.

{% hint style="warning" %}
For any issues generating a HAR file in Safari, see this article from Microsoft Edge website: [Inspect network activity](https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/network/).
{% endhint %}

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stanza-1.gitbook.io/stanza-help-center/for-creators/troubleshoot/generating-a-har-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
