evolution-api
evolution-api copied to clipboard
Envio de WEBHOOK com FALHA ('ChannelStartupService.sendDataWebhook-local')
Welcome!
- [X] Yes, I have searched for similar issues on GitHub and found none.
What did you do?
sempre que é necessario fazer o disparo do webHook, acontece esse erro:
2024-08-21 21:30:16 {
2024-08-21 21:30:16 local: 'ChannelStartupService.sendDataWebhook-local',
2024-08-21 21:30:16 message: '',
2024-08-21 21:30:16 hostName: undefined,
2024-08-21 21:30:16 syscall: undefined,
2024-08-21 21:30:16 code: 'ECONNREFUSED',
2024-08-21 21:30:16 error: undefined,
2024-08-21 21:30:16 stack: 'AggregateError\n' +
2024-08-21 21:30:16 ' at AxiosError.from (/evolution/node_modules/axios/dist/node/axios.cjs:873:14)\n' +
2024-08-21 21:30:16 ' at RedirectableRequest.handleRequestError(/evolution/node_modules/axios/dist/node/axios.cjs:3152:25)\n' +
2024-08-21 21:30:16 ' at RedirectableRequest.emit (node:events:519:28)\n' +
2024-08-21 21:30:16 ' at eventHandlers.
Eu iniciei com docker-compose, abri o manager, criei a instancia, conectei com o meu WhatsApp no celular, e entao aparece o erro ja, se eu mandar msg, ou receber mensagem... nenhum webhook é disparado..
Observei que isso só acontece se minha URL do webHook for "localhost". Testei Utilizando um dsn na minha maquina local (configurando meu arquivo host) e tbm testei utilizando o https://webhook.cool/ em ambos funcionou normalmente.
What did you expect?
Eu Esperava receber os webhooks das acoes, novas mensagens etc...
What did you observe instead of what you expected?
que nao recebi nenhum WebHook
Screenshots/Videos
Which version of the API are you using?
2.1.0
What is your environment?
Windows
Other environment specifications
Nitro5 com i7 12º geracao, 16gb de ram, placa de video Geforce 3050...
Estou rodando em um docker no windows
If applicable, paste the log output
2024-08-21 21:35:41
2024-08-21 21:35:41 [Evolution API] [19175ba9ae4d45f640f] v2.0.9-rc 149 - Wed Aug 21 2024 21:35:41 ERROR [ChannelStartupService] [object]
2024-08-21 21:35:41 {
2024-08-21 21:35:41 local: 'ChannelStartupService.sendDataWebhook-local',
2024-08-21 21:35:41 message: '',
2024-08-21 21:35:41 hostName: undefined,
2024-08-21 21:35:41 syscall: undefined,
2024-08-21 21:35:41 code: 'ECONNREFUSED',
2024-08-21 21:35:41 error: undefined,
2024-08-21 21:35:41 stack: 'AggregateError\n' +
2024-08-21 21:35:41 ' at AxiosError.from (/evolution/node_modules/axios/dist/node/axios.cjs:873:14)\n' +
2024-08-21 21:35:41 ' at RedirectableRequest.handleRequestError (/evolution/node_modules/axios/dist/node/axios.cjs:3152:25)\n' +
2024-08-21 21:35:41 ' at RedirectableRequest.emit (node:events:519:28)\n' +
2024-08-21 21:35:41 ' at eventHandlers.
Additional Notes
Observei que isso só acontece se minha URL do webHook for "localhost". Testei Utilizando um dsn na minha maquina local (configurando meu arquivo host) e tbm testei utilizando o https://webhook.cool/ em ambos funcionou normalmente.