Skip to main content
Since 0.7.0, error codes have been renumbered and error messages are in English (breaking change). This page lists codes for 0.7.0 and later; older versions mostly used 106000. See Changelog · v0.7.0 for the old-to-new mapping.

How to check an error

Errors thrown by the SDK are SdkError (extends Error; the package exports SdkError and ErrorCode): Check code / baseCode, not the message text—messages are for developers and logs and change between versions. For messages shown to end users, map codes yourself using the “Suggested user message” column below; don’t show message directly.

The language parameter

The language init parameter sets the SDK language (a language tag such as zh-CN or en). It’s a process-wide global setting:
  • The SDK sends Accept-Language with its server requests, and the message of server business errors (1000–99999) comes back in Chinese or English accordingly
  • The prompt shown when the browser blocks autoplay uses Chinese or English according to language; override the text with the autoPlayDialogText init parameter
  • The SDK’s own errors (106xxx) are always in English and aren’t affected by language

Client error codes

For the cross-platform meaning of the low 3 digits, see Error code format and unified table. “Suggested user message” is filled in only for codes end users need to know about; the rest are mostly integration issues—check “Common causes”.

Server error codes

Codes from 1000 to 99999 come from the server and are passed through unchanged by the SDK. When showing them to users, show the message returned by the server directly (its language follows language). Common ones: See Server API · Error codes for the full list.