Skip to content

getBase64FromMediaMessage returns ephemeralMessage error with iOS audio messages #2550

@npshostingger-gif

Description

@npshostingger-gif

Version: 2.4.0-rc2 (also tested on v2.3.7)

Description:
Calling POST /chat/getBase64FromMediaMessage/{instance} with an audioMessage
received from an iOS device returns a 400 error.

Error response:
{"status":400,"error":"Bad Request","response":{"message":["TypeError:
Cannot read properties of undefined (reading 'ephemeralMessage')"]}}

Message source: iOS (ptt: true, mimetype: audio/ogg; codecs=opus)

Steps to reproduce:

  1. Send a voice message from an iPhone to a WhatsApp instance
  2. Call POST /chat/getBase64FromMediaMessage/{instance} with the message object
  3. Error is returned regardless of which fields are included in the body

Expected behavior: Return base64 encoded audio for transcription

Workaround: None found. Direct download of the URL returns encrypted .enc file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions