evolution-api icon indicating copy to clipboard operation
evolution-api copied to clipboard

Error when updating groups picture

Open gitzome opened this issue 1 year ago • 6 comments

Welcome!

  • [X] Yes, I have searched for similar issues on GitHub and found none.

What did you do?

When using the endpoint group/updateGroupPicture, wich is a POST http request, it timesout everytime.

What did you expect?

modified image on the group

What did you observe instead of what you expected?

Time out on the request and nothing modified on the groups picture

Screenshots/Videos

image

Which version of the API are you using?

2.1.0

What is your environment?

Windows

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

gitzome avatar Sep 20 '24 15:09 gitzome

same problem when querying all groups.

jackiemacklein avatar Sep 20 '24 17:09 jackiemacklein

Same issue here on v1.8.1. It's a baileys side problem, and seemms to be already solved on version 6.7.7, but when I tried updating from 6.7.4 I got these errors on evo's compilation:

0.427 > tsc                                                                                                                            
0.427                                                                                                                                  
10.34 src/api/services/channels/whatsapp.baileys.service.ts(1580,55): error TS2345: Argument of type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest?: boolean; progress?: number; syncType?: HistorySyncType; }' is not assignable to parameter of type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest: boolean; }'.
10.34   Property 'isLatest' is optional in type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest?: boolean; progress?: number; syncType?: HistorySyncType; }' but required in type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest: boolean; }'.
10.34 src/api/services/channels/whatsapp.baileys.service.ts(3029,48): error TS2345: Argument of type 'WAPrivacyValue' is not assignable to parameter of type 'WAPrivacyGroupAddValue'.
10.34   Type '"none"' is not assignable to type 'WAPrivacyGroupAddValue'.

eduardochaves1 avatar Sep 24 '24 15:09 eduardochaves1

same issue here on 2.1.0... error 404 instead from Evolution api, not related to Baileys, don't even reach the evolution instance do log something

Also, looking to the code, the right method to it, is PUT not POST

JuanxCursed avatar Sep 24 '24 16:09 JuanxCursed

Same issue here on v1.8.1. It's a baileys side problem, and seemms to be already solved on version 6.7.7, but when I tried updating from 6.7.4 I got these errors on evo's compilation:

0.427 > tsc                                                                                                                            
0.427                                                                                                                                  
10.34 src/api/services/channels/whatsapp.baileys.service.ts(1580,55): error TS2345: Argument of type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest?: boolean; progress?: number; syncType?: HistorySyncType; }' is not assignable to parameter of type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest: boolean; }'.
10.34   Property 'isLatest' is optional in type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest?: boolean; progress?: number; syncType?: HistorySyncType; }' but required in type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest: boolean; }'.
10.34 src/api/services/channels/whatsapp.baileys.service.ts(3029,48): error TS2345: Argument of type 'WAPrivacyValue' is not assignable to parameter of type 'WAPrivacyGroupAddValue'.
10.34   Type '"none"' is not assignable to type 'WAPrivacyGroupAddValue'.

I succeed fixing these DataTypes errors on compilation and this problem was actually solved on baileys v6.7.8. Now is all woking fine :+1:

eduardochaves1 avatar Sep 24 '24 16:09 eduardochaves1

O mesmo problema aqui na v1.8.1. É um problema do lado do Baileys, e parece já ter sido resolvido na versão 6.7.7, mas quando tentei atualizar da 6.7.4, obtive esses erros na compilação do evo:

0.427 > tsc                                                                                                                            
0.427                                                                                                                                  
10.34 src/api/services/channels/whatsapp.baileys.service.ts(1580,55): error TS2345: Argument of type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest?: boolean; progress?: number; syncType?: HistorySyncType; }' is not assignable to parameter of type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest: boolean; }'.
10.34   Property 'isLatest' is optional in type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest?: boolean; progress?: number; syncType?: HistorySyncType; }' but required in type '{ chats: Chat[]; contacts: Contact[]; messages: IWebMessageInfo[]; isLatest: boolean; }'.
10.34 src/api/services/channels/whatsapp.baileys.service.ts(3029,48): error TS2345: Argument of type 'WAPrivacyValue' is not assignable to parameter of type 'WAPrivacyGroupAddValue'.
10.34   Type '"none"' is not assignable to type 'WAPrivacyGroupAddValue'.

Eu consegui consertar esses erros de DataTypes na compilação e esse problema foi realmente resolvido no baileys v6.7.8. Agora está tudo funcionando bem 👍

Continuo com o mesmo erro, mesmo com a versão do baileys 6.7.8 e evolution v 1.7.5 alguma sugestão para solucionar o problema ?

jaycealbuquerque avatar Sep 24 '24 16:09 jaycealbuquerque

Continuo com o mesmo erro, mesmo com a versão do baileys 6.7.8 e evolution v 1.7.5 alguma sugestão para solucionar o problema ?

Eu estou na 1.8.1, atualiza logo o evo pra 1.8.2 que deve resolver.

eduardochaves1 avatar Sep 24 '24 17:09 eduardochaves1

To na evo 2.1.0 e não está funcionando

alanfrigo avatar Oct 29 '24 22:10 alanfrigo

Chegaram a testar na versão 2.1.2 ou 2.2.0?

dpaes avatar Dec 03 '24 22:12 dpaes

não esta a funcionar na versão 2.1.2, alguem resolveu ai?

luispimenta avatar Jan 12 '25 07:01 luispimenta