40111: Account connection limit exceeded
account_connection_limit_exceededA new connection was refused because the account had reached the maximum number of concurrent connections permitted by its limits.
What you should do
Restore service by upgrading the account to a package with a higher connection limit, or, if you need more than the packages provide, by contacting Ably support to request a higher limit. Enterprise customers can use the incident escalation process when a limit is disrupting production and needs an urgent response.
Why it happens
The account reached the maximum number of concurrent connections its package permits, so Ably restricted it and refused further connections until the count drops or the limit is raised. This is an account-wide limit, so connections from every app in the account count towards it. A count higher than you expect can be a sign of connections that aren't being closed.
What you'll see
The error is reported with code 40111 and HTTP status 403. The message is typically account restricted (connection limits exceeded).