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

EVO 2.1.1 - Error communicating via webhook sending audio or image

Open wilsonfe 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?

I found a bug in Evo version 2.1.1. When communicating via webhook by sending audio or image, the base64 field is not being sent. This same error does not occur in version 2.1.0.

What did you expect?

That the base64 field was sent with the audio or image data.

What did you observe instead of what you expected?

That the base64 field was sent with the audio or image data.

Screenshots/Videos

download (6) download (5) download (4)

Which version of the API are you using?

2.1.1

What is your environment?

Linux

Other environment specifications

No response

If applicable, paste the log output

erro do áudio

Stack trace

NodeOperationError: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received null at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Files/ConvertToFile/actions/toBinary.operation.js:142:19) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Files/ConvertToFile/ConvertToFile.node.js:135:26) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:670:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1100:20

Additional Notes

erro da imagem

Stack trace

NodeOperationError: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received null at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Files/ConvertToFile/actions/toBinary.operation.js:142:19) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Files/ConvertToFile/ConvertToFile.node.js:135:26) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:670:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1100:20

wilsonfe avatar Oct 03 '24 10:10 wilsonfe

I'm having problems with this too

ip2cloud avatar Oct 04 '24 02:10 ip2cloud

fixed in version release-0.9.2 can close

ip2cloud avatar Oct 11 '24 01:10 ip2cloud

@wilsonfe can confirm if u still with this problem in another version more recent of evolution-api? like 2.1.2 or 2.2.0?

dpaes avatar Dec 13 '24 16:12 dpaes

@wilsonfe can confirm if u still with this problem in another version more recent of evolution-api? like 2.1.2 or 2.2.0?

I'm using 2.2.0 and haven't had the problem.

wilsonfe avatar Dec 13 '24 18:12 wilsonfe

Working with 2.2.0 here and facing he exact same issue

bbrak avatar Jan 08 '25 15:01 bbrak

Working with 2.2.0 here and facing he exact same issue

Also me

SebaGPT avatar Jan 13 '25 19:01 SebaGPT

just a tip, depending of the size in the file (audio or video), the base64 caracters have an limit to send in a request, so if the file its too large, cant be sended in base64. one another way its use minIO or another storage, to when sending an midia, the size of the file can be bigger.

dpaes avatar Jan 13 '25 20:01 dpaes

Estou com esse problema, não consigo enviar imagens e nem audio usando a API OFICIAL. Estou usando a 2.2

diegoirs23 avatar Jan 21 '25 22:01 diegoirs23

o problema mencionado @diegoirs23 pelo seu pode ser diferente do caso do que criou a issue pelo fato dele estar usando o canal baileys e vc estar usando api oficial com o evolution. Logo no seu caso pode ser bug mesmo @diegoirs23. Por isso abra uma issue separada que ja estamos corrigindo para a proxima versão que vai lançar final desse mês com varias correções.

dpaes avatar Jan 22 '25 01:01 dpaes

Hi, I'm having this same issue with v2.2.3. Changed to v2.2.0 and working.

Image

hrxm avatar Jun 14 '25 05:06 hrxm

in Evolution Api Dashboard juste make an restart and refresh that will fix the problem.

Image

spirit14 avatar Nov 12 '25 16:11 spirit14