Não busca a lista de contatos
Welcome!
- [x] Yes, I have searched for similar issues on GitHub and found none.
What did you do?
- 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
}
}'
- Conectei com QR Code pelo manager
- verifiquei se estava open- ok
curl -X GET "http://xxxxxxx:8080/instance/connectionState/NAME" \
-H "apikey: mykey"
-
verifiquei no manager se aparece alguma qtd de contatos e chats. Aparece mais de 4000 contatos e mais de 60000 chats
-
teste com endpoint GET /chat/findChats/NAME ("status":404,"error":"Not Found")
-
teste com endpont GET /chat/findMessages/NAME ("status":404,"error":"Not Found")
-
teste com endpoint GET /contacts/NAME ("status":404,"error":"Not Found")
-
teste de envio de mensagem POST /message/sendText/NAME" -> SUCESSO
-
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
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.