Skip to content

500 internal error in simple sendMessage API call: Cannot read properties of undefined (reading 'textMessage') #1412

@doryashar

Description

@doryashar

Welcome!

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

What did you do?

Hi Guys,
i'm using latest release (docker atendai/evolution-api:latest) and updated an instance from the web ui with my whatsapp (Bailys). the instance shows connected after i scanned the QR code.

sending simple curl SendText request:

curl --request POST
--url http://<MY_EVOLUTION_URL>/message/sendText/<INSTNACE_ID>
--header 'Content-Type: application/json' --header 'apikey: <EVOLUTION_API_KEY>' --data '{
"number": "972528888888",
"text": "Hi, Test",
"delay": 1
}'

result:
{"status":500,"error":"Internal Server Error","response":{"message":"Cannot read properties of undefined (reading 'textMessage')"}}

What did you expect?

200 response.

What did you observe instead of what you expected?

500 (internal server error)

Screenshots/Videos

No response

Which version of the API are you using?

2.2.3

What is your environment?

Windows

Other environment specifications

No response

If applicable, paste the log output

No response

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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