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

Não busca a lista de contatos

Open cnemer21 opened this issue 10 months ago • 1 comments

Welcome!

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

What did you do?

  1. Criei a instancia com e sem syncFullHistory mas é ignorado e fica sempre como false
curl -X POST "http://xxxxxxxxxxx:8080/instance/create"   -H "Content-Type: application/json"   -H "apikey: mykey"   -d '{
    "instanceName": "NAME",
    "integration": "WHATSAPP-BAILEYS",
    "qrcode": true,
    "settings": {
      "syncFullHistory": true,
      "groupsIgnore": false,
      "alwaysOnline": false,
      "readMessages": false,
      "readStatus": false,
      "rejectCall": false
    }
  }'
  1. Conectei com QR Code pelo manager
  2. verifiquei se estava open- ok
 curl -X GET "http://xxxxxxx:8080/instance/connectionState/NAME" \
  -H "apikey: mykey"
  1. verifiquei no manager se aparece alguma qtd de contatos e chats. Aparece mais de 4000 contatos e mais de 60000 chats

  2. teste com endpoint GET /chat/findChats/NAME ("status":404,"error":"Not Found")

  3. teste com endpont GET /chat/findMessages/NAME ("status":404,"error":"Not Found")

  4. teste com endpoint GET /contacts/NAME ("status":404,"error":"Not Found")

  5. teste de envio de mensagem POST /message/sendText/NAME" -> SUCESSO

  6. verifiquei com GET /instance/fetchInstances se tinha mensagens e contatos e OK ("_count":{"Message":63853,"Contact":4656,"Chat":977}

What did you expect?

Eu esperava receber a lista de conversas

What did you observe instead of what you expected?

erro do endpoint não encontrado

{"status":404,"error":"Not Found","response":{"message":["Cannot GET /chat/findChats/NAME"]}} {"status":404,"error":"Not Found","response":{"message":["Cannot GET /chat/findMessages/NAME"]}} {"status":404,"error":"Not Found","response":{"message":["Cannot GET /contacts/NAME"]}}

Screenshots/Videos

No response

Which version of the API are you using?

2.3.7

What is your environment?

Docker

Other environment specifications

estou usando o docker e executando os CURL pelo terminal do Ubuntu Server 22.04 LTS

If applicable, paste the log output

No response

Additional Notes

No response

cnemer21 avatar Jan 28 '26 11:01 cnemer21

Em outra postagem de outro assunto encontrei um comentário sugerindo um link para uma biblioteca enquanto a documentação ainda não está disponível. Testei o post nesse link https://docs.evoapicloud.com/api-reference/chat-controller/find-contacts sem a parte do --data da clausula where e deu certo.

cnemer21 avatar Jan 29 '26 00:01 cnemer21