Skip to content

Update whatsmeow to fix 405 client outdated error#172

Open
isair wants to merge 1 commit intolharries:mainfrom
isair:fix/update-whatsmeow-version
Open

Update whatsmeow to fix 405 client outdated error#172
isair wants to merge 1 commit intolharries:mainfrom
isair:fix/update-whatsmeow-version

Conversation

@isair
Copy link
Copy Markdown

@isair isair commented Feb 26, 2026

Summary

  • Updated go.mau.fi/whatsmeow to v0.0.0-20260219150138-7ae702b1eed4
  • Updated whatsapp-bridge/main.go to pass context.Context to 5 function calls that now require it in the new API

Problem

WhatsApp servers reject the old client version bundled with whatsmeow with a 405 error:

Client outdated (405) connect failure (client version: 2.3000.1021018791)

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.Context to:

  • 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

  • Bridge connects successfully to WhatsApp after the update
  • History sync populates SQLite database (7,265 messages synced)

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant