Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

playwright timeout error

未关闭
#8 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
docker, playwright, python
领域
devops, testing

调研方向

从 vwa/src/envs/browser.py 中的 asetup 和 page.goto 开始,然后检查 vwa/src/envs/utils.py 中的 timeout wrapper。在检查 classifieds 的 Docker 日志的同时,针对 http://localhost:9980/ 重现间歇性导航失败;完成的标准是确定原因并建立可靠的解决方案。

由索引模型根据 Issue 内容生成。

描述

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?

主要语言
Python
星标
52
派生
18
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/ExACT 的其他 Issue

查看 microsoft/ExACT 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。