Update whatsmeow to fix 405 client outdated error#172
Open
isair wants to merge 1 commit intolharries:mainfrom
Open
Update whatsmeow to fix 405 client outdated error#172isair wants to merge 1 commit intolharries:mainfrom
isair wants to merge 1 commit intolharries:mainfrom
Conversation
WhatsApp servers reject the old client version with a 405 error: "Client outdated (405) connect failure (client version: 2.3000.1021018791)" Updates go.mau.fi/whatsmeow to v0.0.0-20260219150138-7ae702b1eed4 and adapts main.go to pass context.Context to functions that now require it: - client.Download - sqlstore.New - container.GetFirstDevice - client.GetGroupInfo - client.Store.Contacts.GetContact Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
go.mau.fi/whatsmeowtov0.0.0-20260219150138-7ae702b1eed4whatsapp-bridge/main.goto passcontext.Contextto 5 function calls that now require it in the new APIProblem
WhatsApp servers reject the old client version bundled with whatsmeow with a 405 error:
This makes the bridge completely non-functional.
Changes
The new whatsmeow version updates the client version to one accepted by WhatsApp servers. The API change requires passing
context.Contextto:client.Download(msg)→client.Download(ctx, msg)sqlstore.New(...)→sqlstore.New(ctx, ...)container.GetFirstDevice()→container.GetFirstDevice(ctx)client.GetGroupInfo(jid)→client.GetGroupInfo(ctx, jid)client.Store.Contacts.GetContact(jid)→client.Store.Contacts.GetContact(ctx, jid)Test plan
🤖 Generated with Claude Code