tulir / whatsmeow

Go library for the WhatsApp web multidevice API
https://go.mau.fi/whatsmeow
Mozilla Public License 2.0
2.17k stars 404 forks source link

WebSocket Error: Close 1006 (Abnormal Closure) When Executing client.GetProfilePictureInfo(clientJID, params) #672

Open caiodearaujo opened 3 hours ago

caiodearaujo commented 3 hours ago

I am encountering a WebSocket error when attempting to execute the following command: client.GetProfilePictureInfo(clientJID, params).

The error occurs consistently, and I receive the following message in the logs:

[WhatsMeow/Socket ERROR] Error reading from websocket: websocket: close 1006 (abnormal closure): unexpected EOF

Steps to Reproduce:

  1. Initialize the Whatsmeow client.
  2. Execute client.GetProfilePictureInfo(clientJID, params) with valid parameters.
  3. Observe the WebSocket closure and the error message in the logs.

Expected Behavior:

The command should successfully fetch the profile picture information without causing a WebSocket closure.

Actual Behavior:

The WebSocket unexpectedly closes with error code 1006 (abnormal closure)

Additional Information:

Please let me know if additional logs or debug information are required.

caiodearaujo commented 3 hours ago

The same happens with the client.Store.Contacts.GetAllContacts()