90041: Broadcast 'MediaUrl' field is too long
ERROR
Twilio could not create or send the broadcast because at least one MediaUrl value in your request exceeds the supported length. This error usually occurs when your application passes a very long media link, often because of excessive query parameters, tracking values, or a pre-signed URL.
- One of the
MediaUrlvalues in the broadcast request is longer than the allowed limit. - Your application generated a media URL with long query string parameters or temporary access tokens.
- You included a redirecting or signed URL that expanded beyond the supported request size for the
MediaUrlfield. - The request payload contains an incorrectly formatted media link that caused the final
MediaUrlvalue to be longer than expected.
- Shorten the
MediaUrlvalue before you send the broadcast request. - Host the media at a stable, publicly accessible URL that does not require long query parameters.
- Remove unnecessary tracking parameters, signatures, or redirect layers from the media link.
- Verify that each
MediaUrlpoints directly to the media file you want to send. - If you generate URLs programmatically, review your application logic to ensure it does not append duplicate parameters or unexpected encoded data.
- Test the request again with a shorter media link to confirm the broadcast can be created successfully.