Client errors

Errors that are generated because of client errors such as invalid request formats, authorization issues and rate limits.

Error code: 40103 - Invalid use of Basic auth over non-TLS transport
API keys are intended to be used by trusted devices, typically on your servers.  This is primarily because unlike short-lived tokens, API keys are valid ind...
Tue, 2 May, 2017 at 7:26 PM
Error code: 40142 - Token expired code
This means your current token has expired. You may be getting this if you have forgotten to renew your existing token. We recommend you make use of authUrl ...
Tue, 4 Sep, 2018 at 5:15 PM
Error code: 40143 - Token unrecognised
This means the token you are providing is not recognised as either an Ably Token, an Ably JWT, or a JWT with a valid Ably Token embedded within it. If you&#...
Tue, 4 Sep, 2018 at 5:24 PM
Error Code: 40144 - Unexpected error decoding JWT; decode exception
This will occur when the structure of the received object/token does not match the expected object/token.  This usually occurs for users when they attem...
Fri, 3 Aug, 2018 at 9:19 AM
Error code: 40160 - action not permitted
This means that the client does not have permission to do whatever it attempting to do. Read through our permissions documentation and make sure the client ...
Tue, 11 Jun, 2019 at 10:37 PM
Error code: 40300
The error 40300 can occur for a number of reasons, due to being the default for 403 (forbidden) actions. Below are examples of known causes and solutions fo...
Tue, 30 Oct, 2018 at 1:10 PM
Error code: 40330 - Unable to activate account due to placement constraint (unspecified)
This error code means that you are accessing an app that belongs to a dedicated cluster, via an incorrect URL.  Our Enterprise customers who have chosen to ...
Tue, 11 Jun, 2019 at 10:38 PM
Error code: 40331 - Unable to activate account due to placement constraint (incompatible environment)
This error code means you are connecting to an app that belongs to a dedicated cluster through the wrong url, for example, by neglecting to specify the corr...
Tue, 11 Jun, 2019 at 10:41 PM
Error code: 40332 - Unable to activate account due to placement constraint (incompatible site)
This error code means you are connecting to an app for an account that is restricted to a region such as US-only or EU-only, without specifying the right en...
Tue, 11 Jun, 2019 at 10:42 PM
Error code: 42910 - Rate limit exceeded; request rejected
This error indicates you have hit a hard limit on your account, and the request you made has been rejected.  The limit will only remain in effect until the ...
Tue, 11 Jun, 2019 at 10:43 PM