---
page_type: error
code: 50504
message: "50504: Programmable Chat: Message body parameter is too long"
level: ERROR
product: Programmable Chat
---

## Description

## Error - 50504

### Programmable Chat: Message body parameter is too long

### Possible Causes

Message body parameter is too long. Visit the [Chat Limits](/docs/chat/chat-limits) documentation to learn more about the maximum message length.

### Possible Solutions

Confirm a valid length Message body is being passed in the request. Additionally, consider intercepting messages with [Event Webhooks](/docs/chat/webhook-events#webhook-bodies-pre-event) to validate or reject messages.