grafana / xk6-browser

The browser module adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol to k6.
https://grafana.com/docs/k6/latest/javascript-api/k6-browser/
GNU Affero General Public License v3.0
344 stars 41 forks source link

Unexpected DevTools server error: context canceled #1404

Open inancgumus opened 3 months ago

inancgumus commented 3 months ago

What?

Ignore the module shutdown while evaluating something on Chromium.

Why?

We get the following error:

Unexpected DevTools server error: context canceled

While it's a correct error message, it creates noise, and it isn't actually an error.

How?

Detect context cancelation and surpass it or reduce the log severity (it's currently a warning).

Tasks

### Tasks
- [ ] Subissue
- [ ] PR
- [ ] Docs PR
- [ ] TypeScript Definitions PR
- [ ] Update the k6 release notes

Related PR(s)/Issue(s)

No response