Huanxin web, uniapp, WeChat applet sdk error report detailed explanation --- registration (2, 3)

Project scenario:


Record a series of problems encountered when docking with the Huanxin SDK, and summarize them to avoid everyone stepping on the pit again. This is mainly aimed at the problems encountered when web, uniapp, and WeChat applets are connected to the Huanxin SDK.


Registration (2)

Registered users report error 400


Cause Analysis:

Start analysis from the console output` and `network request return


You can see the error description user requires that property named username be unique, value of chai exists. After translating it, you can know that the username must be unique, and the user already exists


solution:

When you know that the error is reported due to repeated user names, you must ensure that the user name is unique when registering


Registration (3)

Registered users report error 429

Cause Analysis:

Also start analysis from the console output` and `network request return


You can see the error description You have exceeded the limit of the community edition, Please upgrade to the enterprise edition, roughly translated you can see that you have exceeded the limit of the community edition, please upgrade to the enterprise edition
 


solution:

Contact the business manager to upgrade the appkey version to the enterprise version. The number of registered users of the free version of appkey is only 100. After more than 100, an error 429~ will be reported.


expand:

Some students also reported a 429 error when calling the API, but the error description was Too Many Requests: [{"exception":"com.easemob.flow.exceptions.ReachLimitException","duration":0,"error":"reach_limit","error_description":"This request has reached api limit.","timestamp": 1660188532229}]


This is because the API call frequency limit has been exceeded. You can refer to Huanxin's document on Restful API call frequency limit, Rest API call frequency limit | Huanxin IM document . After exceeding the limit, you can pause for a while before continuing to call, or you can contact the business manager to adjust the limit

It should be noted that the descriptions of the two 429 errors are different, and you need to carefully identify them~

Huanxin web, uniapp, WeChat applet sdk error report details --- registration (1)

Guess you like

Origin blog.csdn.net/huan132456765/article/details/130132236