fix(whatsmeow): call store.SetWAVersion with dynamic webVersion to prevent 405 Client Outdated
维护者通常 9 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 58/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- go
调研方向
Start with pkg/whatsmeow/service/whatsmeow.go, reading StartClient and fetchWhatsAppWebVersion() to see how the retrieved version reaches the device properties and the handshake. Check how store.SetWAVersion is used and verify the version values in both paths. Done means the Noise handshake uses the retrieved web version and connections no longer fail with 405; run the relevant Go tests.
由索引模型根据 Issue 内容生成。
描述
Problem Description
WhatsApp has deprecated client version 2.3000.1042386815 today (Nov 2, 2026), resulting in all connections failing during the WebSocket handshake with:
<failure location="frc" reason="405"/>
[Client ERROR] Client outdated (405) connect failure (client version: 2.3000.1042386815)
Root Cause
In pkg/whatsmeow/service/whatsmeow.go, the function fetchWhatsAppWebVersion() successfully retrieves the latest web version (e.g. 2.3000.1052769028), and sets store.DeviceProps.Version.
However, whatsmeow uses store.GetWAVersion() and store.BaseClientPayload.UserAgent.AppVersion for the Noise handshake payload, which remains hardcoded to the older version compiled into whatsmeow.
Because store.SetWAVersion was never invoked, WhatsApp's server rejects the connection with HTTP 405.
Proposed Solution
In pkg/whatsmeow/service/whatsmeow.go, call store.SetWAVersion(...) whenever the web version is determined or retrieved:
- In
StartClient:
if version.Major != 0 && version.Minor != 0 && version.Patch != 0 {
store.SetWAVersion(store.WAVersionContainer{uint32(version.Major), uint32(version.Minor), uint32(version.Patch)})
}
- Inside
fetchWhatsAppWebVersion()whenclientRevision > 0:
store.SetWAVersion(store.WAVersionContainer{2, 3000, uint32(clientRevision)})
We tested this patch in production and all instances immediately reconnected to WhatsApp Web without requiring re-pairing (no QR code needed).
- 主要语言
- Go
- 星标
- 1k
- 派生
- 610
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
evolution-foundation/evolution-go 的其他 Issue
-
/user/info and /user/avatar hang for 75s when number is a phone number可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
evolution-foundation/evolution-go#223 ·
维护者通常 9 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
evolution-foundation/evolution-go#193 ·
维护者通常 9 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
evolution-foundation/evolution-go#104 ·
维护者通常 9 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
evolution-foundation/evolution-go#101 ·
维护者通常 9 天内回复
-
POST /group/participant always returns 400 "participants is required and cannot be empty" (wrong validation middleware on route)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 1/5 1 小时以内 新手友好度 88/100
evolution-foundation/evolution-go#97 · 2 条评论 ·
维护者通常 9 天内回复
查看 evolution-foundation/evolution-go 的全部 Issue
相似的 Issue
-
[Enhancement] platform-engineer: a definition change does not re-render running Applications; say how to roll it out可能已有人在做 @anoop2811 今天认领。 未关闭needs-triage type/enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Area/Policies Aspect/API Severity/Major Type/Bug
难度 2/5 1-3 小时 新手友好度 76/100
wso2/api-platform#4468 ·
维护者通常 1 天内回复
-
review: medium
难度 2/5 1-3 小时 新手友好度 78/100
1lck/Lithe-IDEA#2432 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 86/100
dsx-ai-factory/health-validation#368 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
keyxmakerx/Chronicle#2824 ·
维护者通常 1 天内回复