40332: Account not permitted in this region
account_not_permitted_in_regionThe request reached a region the account is not permitted to use.
What you should do
Configure every connecting client with the custom endpoint Ably issued for the account, following platform customization. This routes requests to a region the account is permitted to use.
Why it happens
The account is restricted to one or more regions, such as EU-only or US-only, and the request reached a region outside that set. This normally happens when a client connects without the custom endpoint set and is routed to a default region the account isn't permitted to use.
What you'll see
The error is reported with code 40332 and HTTP status 403. The message is Unable to activate account due to placement constraint (incompatible site).