fix(whatsmeow): call store.SetWAVersion with dynamic webVersion to prevent 405 Client Outdated
メンテナーはふだん 9 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 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 ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
evolution-foundation/evolution-go のほかの issue
-
/user/info and /user/avatar hang for 75s when number is a phone number対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 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)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン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 日以内に返信