Troubleshooting HAR File Import Issues

Last updated: November 20, 2026

This article helps you fix a HAR file import that adds few endpoints, adds none, or fails. Start with the status that Astra shows for your file, and then use the matching section below.

Check the import status

  1. Open the Targets page, click the settings icon on the target's row and open Definition Files.

  2. Open the HAR Files tab and find your file. The status chip next to it tells you what happened.

  3. Open Import Endpoints in the left menu and click the import to see which requests were added and which failed. Click a failed request to read its Status Code and Error Message.

Status

What it means

What to do

Import Pending

The file has not been imported yet.

Click Import endpoints on the Definition Files page.

Importing

The import is running.

Wait for it to finish.

Imported

Every endpoint was added.

Nothing to fix.

Partially Imported

Some requests failed.

Use View failed requests and the sections below.

Import Failed

No request succeeded.

Use the sections below, record a new HAR and import again.

Import cancelled or Import skipped

The import was stopped or the file was skipped.

Start the import again with Retry import.

Read more about the import screens in 📄 How to import your API endpoints.

Common causes and fixes

Find the cause that matches what you see, and follow the fix under it.

The recording has no valid sign-in

What you see: Failed requests show 401 Unauthorized or 403 Forbidden, or signed-in pages redirect to the sign-in page.

Why: The browser exported a sanitized file without cookies and authorization headers, the session in the recording has expired, or the recording doesn't include the sign-in.

What to do

  1. Record a new HAR file straight away, starting from the sign-in screen.

  2. In Chrome, export with sensitive data. Read more in 📄 How to generate a HAR file.

  3. Upload it and import again right after recording, so the session is still valid.

Requests depend on one-time values

What you see: Requests that work in the browser fail when Astra replays them.

Why: Some requests carry values that work once, such as CSRF tokens, nonces, signed URLs or request identifiers.

What to do: Record complete workflows instead of single requests, so each request comes after the step that creates its value.

The recording is missing workflows

What you see: The import adds fewer endpoints than you expected, or whole sections of your application are missing.

Why: The recording stopped early, or it doesn't include those workflows.

What to do

  • Start recording before you sign in, and tick Preserve log.

  • Turn on Disable cache so every request appears.

  • Walk through every page and action you want covered before you export.

  • Record one HAR file for each user role that sees different features.

Requests returned errors in the recording

What you see: Endpoints that return errors in the recording are missing from your inventory.

Why: Astra adds an endpoint only when its request returns a 2xx or 3xx response.

What to do: Fix the cause of the error in your application or recording, and import again.

The recording holds a lot of unrelated traffic

What you see: The file is large, with images, fonts, analytics and other third-party requests.

What to do: Use the application without refreshing pages again and again. Astra ignores third-party requests, but a smaller recording is easier to check.

Your application can't be reached from the internet

What you see: Requests fail because the application is on a private network or on localhost.

What to do: Make the environment reachable from Astra's scanner IPs. Read more in How to make sure Astra's scanner can reach your application.

The target already holds the most HAR files it allows

What you see: Astra says the maximum number of HAR files was reached.

What to do: Import the files that are waiting, and remove files you no longer need. Then upload the new one.

Contact support

Write to help@getastra.com and include:

  • The HAR file, or the part that shows the problem.

  • The target URL.

  • The pages or APIs that are missing.

  • Whether the application needs sign-in.

  • The error message from the failed request.