microsoft / microsoft/ExACT

playwright timeout error

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
52
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Traceback (most recent call last):
File "/data/wangzhenchuan/Projects/LIFT/src/environment_manager.py", line 46, in initial_message_construct
await self.parallel_produce(self.busy_tasks,[create_none_action() for _ in range(len(self.busy_tasks))])
File "/data/wangzhenchuan/Projects/LIFT/src/environment_manager.py", line 115, in parallel_produce
results = await asyncio.gather(*coros, return_exceptions=False)
File "<@beartype(vwa.src.envs.browser.FastCachedwActionMatchingBrowserEnv.areset) at 0x7ff6d8537370>", line 65, in areset
File "/data/wangzhenchuan/Projects/LIFT/vwa/src/envs/browser.py", line 783, in areset
obs, info = await super().areset(seed=seed, options=options)
File "/data/wangzhenchuan/Projects/LIFT/vwa/src/logging.py", line 76, in awrap
result = await afunc(*args, **kwargs)# !!!不要忘记进入了
File "<@beartype(vwa.src.envs.browser.FastCachedBrowserEnv.areset) at 0x7ff6d8536e60>", line 65, in areset
File "/data/wangzhenchuan/Projects/LIFT/vwa/src/envs/browser.py", line 589, in areset
await self.asetup(config_file=config_file)
File "/data/wangzhenchuan/Projects/LIFT/vwa/src/envs/utils.py", line 81, in awrap
return await afunc(*args, **kwargs)
File "/data/wangzhenchuan/Projects/LIFT/vwa/src/envs/utils.py", line 49, in awrap
result = await asyncio.wait_for(afunc(*args, **kwargs), timeout=seconds)
File "/data/wangzhenchuan/anaconda3/envs/easyr1/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
return fut.result()
File "/data/wangzhenchuan/Projects/LIFT/vwa/src/envs/browser.py", line 284, in asetup
await page.goto(url)
File "/data/wangzhenchuan/anaconda3/envs/easyr1/lib/python3.10/site-packages/playwright/async_api/_generated.py", line 9251, in goto
await self._impl_obj.goto(
File "/data/wangzhenchuan/anaconda3/envs/easyr1/lib/python3.10/site-packages/playwright/_impl/_page.py", line 479, in goto
return await self._main_frame.goto(**locals_to_params(locals()))
File "/data/wangzhenchuan/anaconda3/envs/easyr1/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 147, in goto
await self._channel.send("goto", locals_to_params(locals()))
File "/data/wangzhenchuan/anaconda3/envs/easyr1/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 61, in send
return await self._connection.wrap_api_call(
File "/data/wangzhenchuan/anaconda3/envs/easyr1/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 482, in wrap_api_call
return await cb()
File "/data/wangzhenchuan/anaconda3/envs/easyr1/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 97, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
navigating to "http://localhost:9980/", waiting until "load"

This error is essentially impossible to reproduce reliably, yet it happens very frequently. Sometimes it goes away on its own after a while, and other times it doesn’t recover by itself. I’ve looked at the classifieds Docker logs but can’t see anything wrong. I’m asking for help—has anyone else encountered the same issue?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with vwa/src/envs/browser.py at asetup and page.goto, then inspect the timeout wrapper in vwa/src/envs/utils.py. Reproduce the intermittent navigation failure against http://localhost:9980/ while checking the classifieds Docker logs; done means identifying the cause and establishing a reliable resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, playwright, python
Domain
devops, testing
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.