Skip to content

Sending templates with no content variables results in TwilioRestException and Content Variables are invalid #892

@BrentALevings

Description

@BrentALevings

Hi there!

I have created a template on Twilio that is fully filled out. It is a call_to_action template with buttons that lead to links. I have filled in everything and don't have any variables in the template. When I try and send the template to a user as a response using:

message = client.messages.create(
    content_sid=template_sid,
    from_=from_no,
    to=to
)

I get an error:

TwilioRestException: HTTP 400 error: Unable to create record: The Content Variables parameter is invalid.

I have tried to see what could be the reason for this but I can't find anything on why this is happening.

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