You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
I am having trouble getting the /wait endpoint to behave as expected. No matter how short I set the quiet period, or how long I set the timeout, it always times out. For example, if I set quietPeriodInMs to 1 and timeoutInMs to 120000, it will take 120000 ms and timeout, even when there should be no traffic at all.
To Reproduce
Start a browserup server. For me this looks like: /opt/browserup-proxy-2.1.2/bin/browserup-proxy --port 30050
Add a proxy and start chromedriver using this proxy. I do this in Python, using these settings:
Load a webpage: driver.get("https://www.google.com/")
Wait for proxy traffic to stop: curl -X PUT http://localhost:30050/proxy/30052/wait?quietPeriodInMs=1&timeoutInMs=120000
/wait will timeout.
Expected behavior
Calling PUT /wait with quietPeriodInMs=1 and timeoutInMs=120000 should return fairly immediately once a page finishes loading, since there should definitely be a quiet period of 1 millisecond in a 2 minute window.
I am having trouble getting the /wait endpoint to behave as expected. No matter how short I set the quiet period, or how long I set the timeout, it always times out. For example, if I set quietPeriodInMs to 1 and timeoutInMs to 120000, it will take 120000 ms and timeout, even when there should be no traffic at all.
To Reproduce
/opt/browserup-proxy-2.1.2/bin/browserup-proxy --port 30050driver.get("https://www.google.com/")curl -X PUT http://localhost:30050/proxy/30052/wait?quietPeriodInMs=1&timeoutInMs=120000Expected behavior
Calling PUT /wait with quietPeriodInMs=1 and timeoutInMs=120000 should return fairly immediately once a page finishes loading, since there should definitely be a quiet period of 1 millisecond in a 2 minute window.
Please complete the following information: