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

Erro ao enviar arquivos

Open keven-cerrado opened this issue 1 year ago • 2 comments

Welcome!

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

What did you do?

Captura de tela 2024-09-16 113304

Sempre que estou tentando enviar arquivos, da esse mesmo erro! Eu tenho apenas 1 instancia na EVO

What did you expect?

Enviar o arquivo

What did you observe instead of what you expected?

(node:170) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 end listeners added to [Readable]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit (Use node --trace-warnings ... to show where the warning was created) (node:170) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Readable]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit (node:170) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Readable]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit [Evolution API] [AtendimentoTI] v2.1.0 170 - Mon Sep 16 2024 11:38:42 ERROR [ChannelStartupService] [string] line 2378 [Evolution API] [AtendimentoTI] v2.1.0 170 - Mon Sep 16 2024 11:38:42 ERROR [ChannelStartupService] [object] Error: Media upload failed on all hosts at Object.upload (/evolution/node_modules/baileys/lib/Utils/messages-media.js:577:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /evolution/node_modules/baileys/lib/Utils/messages.js:122:28 at async Promise.all (index 0) at async prepareWAMessageMedia (/evolution/node_modules/baileys/lib/Utils/messages.js:120:40) at async Ms.prepareMediaMessage (/evolution/dist/main.js:203:13692) at async Ms.mediaMessage (/evolution/dist/main.js:203:15882) at async he.sendAttachment (/evolution/dist/main.js:76:16196) at async he.receiveWebhook (/evolution/dist/main.js:78:232) at async ai.dataValidate (/evolution/dist/main.js:214:101852) { data: null, isBoom: true, isServer: true, output: { statusCode: 500, payload: { statusCode: 500, error: 'Internal Server Error', message: 'An internal server error occurred' }, headers: {} } }

[Evolution API] v2.1.0 170 - Mon Sep 16 2024 11:38:42 ERROR [ChatwootService] [object] { status: 500, error: 'Internal Server Error', message: [ 'Error: Media upload failed on all hosts' ] }

Screenshots/Videos

image

Which version of the API are you using?

2.1.0

What is your environment?

Docker

Other environment specifications

image

If applicable, paste the log output

No response

Additional Notes

No response

keven-cerrado avatar Sep 16 '24 14:09 keven-cerrado

Eu tive o mesmo erro e não consegui tirar. Pelo que vi não está acontecendo com todos. Mas para resolver meu caso, acabei voltando para a versão 2.0.10 que está conseguindo enviar pelo menos

liluyoud avatar Sep 17 '24 01:09 liluyoud

Eu tive o mesmo erro e não consegui tirar. Pelo que vi não está acontecendo com todos. Mas para resolver meu caso, acabei voltando para a versão 2.0.10 que está conseguindo enviar pelo menos

Aqui mesma coisa, revirei tudo e não achei solução, apenas fazendo o downgrade

andersoncobuci avatar Sep 17 '24 03:09 andersoncobuci

Chegaram a testar em uma versão mais recente como 2.1.2 ou 2.2.0?

dpaes avatar Dec 03 '24 22:12 dpaes

Sim, estou usando a 2.2 e agora está td certo. Vlw

liluyoud avatar Dec 04 '24 10:12 liluyoud

Versão 2.1.2 segue com o mesmo problema, alguma possível solução?

pedroepif avatar Jan 30 '25 14:01 pedroepif

testou na 2.2.1 @pedroepif ?

dpaes avatar Jan 30 '25 17:01 dpaes

Mesmo erro aqui, em >2.2

joao-baza avatar Mar 20 '25 20:03 joao-baza

@joao-baza , estou com o mesmo problema, vc conseguiu alguma solução? ja fiz downgrade p/ outras versões mas dá o mesmo erro.

felipesoares-tech avatar Mar 25 '25 19:03 felipesoares-tech