Skip to content

Imagens aleatorias não renderizam no chatwoot v2.3.1 - chatwoot 3.15.8 #1699

Closed

Description

@rafwell

Welcome!

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

What did you do?

Encaminhar uma mensagem de imagem fora do chatwoot para um número conectado.

What did you expect?

Esperava que a imagem aparecesse no chatwoot

What did you observe instead of what you expected?

Aleatoriamente ela não aparece, vejo um erro no log e aparece depois de um tempo a string no chatwoot, aparentemente após ele desistir de obter a imagem

Screenshots/Videos

No response

Which version of the API are you using?

2.3.1 homolog

What is your environment?

Docker

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

evolution_api    | [Evolution API]  [ct.production.5756f880-0984-11f0-bca7-f18320ff3df4]  v2.3.1  163   -  Tue Jul 08 2025 16:42:30     ERROR   [ChannelStartupService]  [string]  Download Media failed, trying to retry in 5 seconds... 
evolution_api    | [Evolution API]  [ct.production.5756f880-0984-11f0-bca7-f18320ff3df4]  v2.3.1  163   -  Tue Jul 08 2025 16:42:36     ERROR   [ChannelStartupService]  [string]  Download Media with downloadContentFromMessage also failed! 
evolution_api    | [Evolution API]  [ct.production.5756f880-0984-11f0-bca7-f18320ff3df4]  v2.3.1  163   -  Tue Jul 08 2025 16:42:36     ERROR   [ChannelStartupService]  [string]  Error processing media message: 
evolution_api    | [Evolution API]  [ct.production.5756f880-0984-11f0-bca7-f18320ff3df4]  v2.3.1  163   -  Tue Jul 08 2025 16:42:36     ERROR   [ChannelStartupService]  [object]   
evolution_api    | TypeError: Cannot read properties of undefined (reading 'toString')
evolution_api    |     at Bs.getBase64FromMediaMessage (/evolution/dist/main.js:248:7715)
evolution_api    |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
evolution_api    |     at async De.eventWhatsapp (/evolution/dist/main.js:124:1831)
evolution_api    |     at async messages.upsert (/evolution/dist/main.js:227:25682) 
evolution_api    | 
evolution_api    | [Evolution API]    v2.3.1  163   -  Tue Jul 08 2025 16:42:36     ERROR   [ChatwootService]  [object]   
evolution_api    | {
evolution_api    |   status: 400,
evolution_api    |   error: 'Bad Request',
evolution_api    |   message: [
evolution_api    |     "TypeError: Cannot read properties of undefined (reading 'toString')"
evolution_api    |   ]
evolution_api    | } 
evolution_api    | 

Activity

  1. rafwell commented on Jul 8, 2025

    @rafwell
    ContributorAuthor

    Este problema esta acontecendo também com arquivos e outros, e não somente no chatwoot, é o getBase64FromMediaMessage que está bugado e não decodifica em alguns casos

  2. alexjlutke commented on Jul 9, 2025

    @alexjlutke

    Olá, conseguiu resolver esse problema, aqui esta igual?

  3. rafwell commented on Jul 9, 2025

    @rafwell
    ContributorAuthor

    Eu suspeito que possa ser um problema de rede, porque está muito aleatório. Com esse ajuste que fiz eu vi que está dando um erro de timeout ao tentar baixar. Então eu troquei meu proxy aqui e por ora parece que está ok, mas talvez alguém mais experiente possa dar uma revisada.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions