Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

30124: MessagingServiceSID cannot be empty or null


ERROR: 30124

error-30124 page anchor
MESSAGING
ERROR

This error occurs when a message create request does not include a usable messagingServiceSid value. When you send a message with a Messaging Service, Twilio uses that SID to select a sender from the service's Sender Pool.

Possible causes

possible-causes page anchor
  • The request omitted the messagingServiceSid field.
  • The request included messagingServiceSid, but the value was empty, null, or not a valid Messaging Service SID. Twilio expects an SID that matches the MG pattern.
  • Pass a valid messagingServiceSid value that matches the Messaging Service SID format (MG followed by 32 hexadecimal characters).
  • If you are not using a Messaging Service, provide a valid from sender instead. The from parameter is required when MessagingServiceSid is not passed.
  • If you are using a Messaging Service, omit from or set it to a sender from that service's Sender Pool.

Additional resources

additional-resources page anchor