-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Describe the bug
For some reason the proxy is failing to forward certain requests to the server.
One example I've found is this URL:
This is a tracking pixel from tvScientific and it's being used by vistaprint.com.
It's not a big deal that this particular URL isn't working while recording, but it:
- interacts with the browser debugger in weird ways, and
- is a sign that there are certain types of requests that we can't record properly
In browser scripts, the goto and waitForNavigation events will wait for the page load event to fire before continuing. The load event is executed after all the assets (stylesheets, images, script, etc.) have been loaded.
Since the proxy fails to forward the request the browser is stuck waiting for it to finish. Consequently, the goto and waitForNavigation will also get stuck. Eventually, the request times out and only then is the load event emitted.
The timeout for the browser seems to be about ~30 seconds, which is the same as the default timeout for goto and waitForNavigation. This means that most (but not all) of the time these calls will fail the test.
Steps to reproduce the problem
- Go to Start a new recording
- Enter the following start URL: https://tvspix.com/t.png?&t=1770312184242&l=tvscientific-pix-o-e60d9a8a-65c7-422b-a6ef-12e8d481fa9b&u3=https%3a%2f%2fwww.vistaprint.com%2f
- Start the recording
Expected behavior
The request should go through like it does if you try to access it directly
Actual behavior
The request hangs until it times out after ~30 seconds.
Grafana k6 Studio version
1.10.0
OS
macOS