fix(whatsmeow): call store.SetWAVersion with dynamic webVersion to prevent 405 Client Outdated
Los mantenedores suelen responder en 9 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go
- Área
- backend-api-design
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- Go
- Estrellas
- 1k
- Forks
- 610
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de evolution-foundation/evolution-go
-
/user/info and /user/avatar hang for 75s when number is a phone numberPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
evolution-foundation/evolution-go#223 ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
evolution-foundation/evolution-go#193 ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
evolution-foundation/evolution-go#104 ·
Los mantenedores suelen responder en 9 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
evolution-foundation/evolution-go#101 ·
Los mantenedores suelen responder en 9 días
-
POST /group/participant always returns 400 "participants is required and cannot be empty" (wrong validation middleware on route)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
evolution-foundation/evolution-go#97 · 2 comentarios ·
Los mantenedores suelen responder en 9 días
Todos los issues de evolution-foundation/evolution-go
Issues similares
-
[Enhancement] platform-engineer: a definition change does not re-render running Applications; say how to roll it outPosiblemente ocupada @anoop2811 la tomó hoy. Abiertoneeds-triage type/enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Area/Policies Aspect/API Severity/Major Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
wso2/api-platform#4468 ·
Los mantenedores suelen responder en 1 día
-
review: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
1lck/Lithe-IDEA#2432 ·
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
dsx-ai-factory/health-validation#368 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
keyxmakerx/Chronicle#2824 ·
Los mantenedores suelen responder en 1 día