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

51128: Twilsock: Too many messages per connection


ERROR: 51128

error-51128 page anchor
ERROR

Twilsock rejected traffic on a single connection because your application sent more messages than the connection limit allows. This usually means the client is sending requests too quickly, retrying too aggressively, or creating an unexpected amount of real-time traffic over one Twilsock session.

Possible causes

possible-causes page anchor
  • Your client is sending a burst of messages over one Twilsock connection that exceeds the allowed rate or volume.
  • Your application has a retry loop or reconnect loop that resends the same requests repeatedly.
  • Multiple features in your application are sharing one connection and generating more traffic than expected.
  • A client-side bug is causing duplicate operations, duplicate event publishing, or repeated subscription updates.
  • Your application workload has grown beyond the default limits configured for your account or use case.
  • Review your client logic and confirm that it does not send duplicate requests, repeated updates, or unnecessary retries over the same connection.
  • Add throttling or backoff in the client so traffic is spread more evenly instead of being sent in large bursts.
  • Check reconnect and retry behavior to make sure the client does not immediately replay queued messages in a tight loop.
  • Reduce unnecessary real-time operations such as repeated subscriptions, updates, or polling behavior that can increase Twilsock traffic.
  • If the traffic is expected for your use case, contact Support to discuss whether your account limits need to be reviewed.

Additional resources

additional-resources page anchor