---
title: "Error 12017 The operation was canceled"
slug: "error-12017-the-operation-was-canceled"
updated: 2025-06-05T19:30:48Z
published: 2025-06-05T19:30:48Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.catchpoint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Error 12017 The operation was canceled

## Overview

There may times when one or more resources toward the bottom of a waterfall show a yellow warning icon. When hovered over, error 12017 displays as in the example below: ![oper.png](https://cdn.document360.io/cb4af8f9-6751-4fd2-b39c-07aae832badb/Images/Documentation/4402415131917-oper.png)

This can happen if the test ends while a piece of content is in the process of being downloaded. This will happen in situations where there is a "stop dead" completion event. For example, in Web Tests, the default completion time is Document Complete + 2 seconds. The moment that time is reached, the test is terminated, and the browser window is closed.

This error represents the same thing that would happen in a real browser; if the browser closes while an item is downloading, the operation gets cancelled.

This situation is not indicative of any problems with the site or those resources. However, if there is a need to avoid these errors, it is possible to use a completion event which waits for all network activity to stop before ending the test.

## Workaround

In Transaction Test scripting, **`WaitforNoRequest("2000")`** can be used, which will wait for two seconds of network inactivity before terminating the test. This should allow for all items to be fully downloaded.

In Playwright Test scripting, **`await page.waitForTimeout(2000)`** can be used. This should allow for all items to be fully downloaded.

*Please note: This time starts counting only after the connection is established with the server.*

In Web tests, there is an additional setting under Advanced Settings which does the same thing.

![stop.png](https://cdn.document360.io/cb4af8f9-6751-4fd2-b39c-07aae832badb/Images/Documentation/4402415078029-stop.png)
