Wsarecv error when calling await Promise.all()

Hi folks,

I have a link that leads to the next page:

const myLink = page.locator(‘//*[@id=“my_reports-link”]’);
await Promise.all([page.waitForNavigation(),]);

Looking good, right?
But I got errors:
ERRO[0030] communicating with browser: read tcp> wsarecv: An existing connection was forcibly closed by the remote host. category=cdp elapsed=“0 ms” goroutine=55
ERRO[0031] process with PID 4960 unexpectedly ended: exit status 1 category=browser elapsed=“75 ms” goroutine=37
ERRO[0036] Uncaught (in promise) waiting for navigation: timed out after 30s

In browser I can see that the click was successful. The next page is loaded, and myObjectOnNextPage is visible.
The browser waited until 30sec is up.

Could you please shed some light on this?



Could you please replicate this behavior on a public website so that we can diagnose the problem? Providing us with the full script and an HTML page will help reproduce and diagnose the problem.