40168: SDK version not compatible with MAU pricing

sdk_version_not_mau_compatible

A connection or request was refused because it came from a version of an Ably SDK that is not compatible with monthly active user (MAU) pricing, which the account uses.

What you should do

Upgrade to the latest version of the SDK that the SDKs page lists as compatible with MAU pricing. The page shows which versions are compatible when you are signed in to an account on MAU pricing. Retrying with the same version does not help.

Why it happens

Under MAU pricing, Ably counts each end user's device toward the account's monthly active users, but not your own servers, so it needs to know which of the two each client is. Versions of Ably SDKs that are compatible with MAU pricing provide separate device and server packages so Ably can tell them apart. Earlier versions don't, and nor do SDKs built on them, such as earlier versions of the Chat or Spaces SDKs, so their connections and requests are refused.

What you'll see

The error is reported with code 40168 and HTTP status 400. The message is Unable to accept connections or requests from this version of the Ably SDK because it is not compatible with your account. Upgrade to the latest version that is listed as compatible with MAU pricing. See https://ably.com/docs/sdks.