Skip to content

Whatsapp sender messaging limit is null #811

@zshanabek

Description

@zshanabek

Issue Summary

When I try to send message from whatsapp number to whatsapp number I get error: Account exceeded the null daily messages limit. It's very strange that null value is assigned to limit variable. Please set real value instead of null

Steps to Reproduce

  1. Send whatsapp message
  2. Get limit error

Code Snippet

client = Client(account_sid, auth_token)
 message = client.messages.create(
            from_=f'whatsapp:{from}',
            body=body,
            to=f'whatsapp:{phone}'
        )

Exception/Log

twilio.base.exceptions.TwilioRestException: 
HTTP Error Your request was:

POST /Accounts/<account_sid>/Messages.json
Twilio returned the following information:
Unable to create record: Account <account_sid> exceeded the null daily messages limit
More information may be available here:
https://www.twilio.com/docs/errors/63038

I can provide account_id if necessary

Technical details:

  • twilio-python version: 9.2.3
  • python version: 3.11.6

Activity

delarosa05

delarosa05 commented on Mar 6, 2025

@delarosa05

Hi, this can be caused by the following stuff:

  1. Is your account in trial mode? This can be the root of the error. Make sure to check your account isn't in sandbox mode.
  2. Have you configured the limit of Whatssapp messages? You can check it on Twilio Dashboard
  3. Is your account free ? This can limit the amount of messages you can send in a day .
  4. You can get your account info using the next code:
`from twilio.rest import Client

client = Client(account_sid, auth_token)

account = client.api.accounts(account_sid).fetch()
print(account.status)
`

This will let you know if your account have got any type of constraints

  1. If the problem continues try contacting Twilio support.

PD: I am doing a college project where we have to documentate this module. Don't get mad at me :)

tomjod

tomjod commented on Mar 8, 2025

@tomjod

Hi, this can be caused by the following stuff:

  1. Is your account in trial mode? This can be the root of the error. Make sure to check your account isn't in sandbox mode.
  2. Have you configured the limit of Whatssapp messages? You can check it on Twilio Dashboard
  3. Is your account free ? This can limit the amount of messages you can send in a day .
  4. You can get your account info using the next code:
`from twilio.rest import Client

client = Client(account_sid, auth_token)

account = client.api.accounts(account_sid).fetch()
print(account.status)
`

This will let you know if your account have got any type of constraints

  1. If the problem continues try contacting Twilio support.

PD: I am doing a college project where we have to documentate this module. Don't get mad at me :)

It doesn't work account = client.api.accounts(account_sid).fetch()

are you sure that is correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumImportant but not urgent; Workaround availabletype: bugbug in the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zshanabek@tiwarishubham635@tomjod@delarosa05

        Issue actions

          Whatsapp sender messaging limit is null · Issue #811 · twilio/twilio-python