当前位置:网站首页>[FAQ] access the HMS core push service, and the server sends messages. Cause analysis and solutions of common error codes
[FAQ] access the HMS core push service, and the server sends messages. Cause analysis and solutions of common error codes
2022-07-25 20:50:00 【51CTO】
HMS Core Push service Support developers to use HTTPS Access Agreement Push Server side , You can send downlink messages from the server to the terminal device . This article summarizes the most common messages sent by servers 6 An error code , It also provides cause analysis and solutions , Developers who encounter similar problems need to know about it .
Error code one :80200001," Oauth Authentication error "
Cause analysis :
- The message sent was not added Authorization The request parameter or value is empty .

- application A Of APPID Applied Access Token, But for applications B Push message , This error code will also appear .

apply Access Token


Send message
resolvent :
- Troubleshooting request HTTP Whether there is a reference in the head Authorization Request parameters .Authorization The acquisition method can Reference documents 、 Downlink message API can Reference documents .
- obtain Access Token The use of APPID And sending messages APPID Need to be consistent .
Error code two :80300007,"Token Invalid error "
Cause analysis :
- token illegal ,token More or less characters , For example, there is more space in the following figure .

- For application A Send message ,token But application B Of , This situation is also one of the reasons .

resolvent :
- Check token Is the parameter correct ;
- Make sure to send messages using token, It is obtained from the target application
Error code three :80300010," In message body Token The quantity does not meet the default value "
Cause analysis :
- Developers will “message” Misspelled fields , In the example diagram message There are too many fields at the end 'r';
- token Not in the right place , Field structure problem ;
- Issued token The quantity exceeds the limit , or token It's empty .

resolvent :
- Make sure message、token The field is written correctly ;
- message Field contains token, And "android" At the same level ;

- token The quantity of should be in 1-1000 individual , confirm token Number of parameters , Please refer to Reference documents .
Error code four :80200003,"Oauth Token Be overdue "
Cause analysis :
- Authorization In the request parameter value Access Token Has expired
- The request parameter value is incorrect , More or less other characters .

resolvent :
- Access Token Valid for one hour , If the time limit is exceeded , You need to retrieve and use the latest Access Token Send message . Recapture Access Token Method Refer to article files
- Ensure that the Access Token Consistent with the obtained , Copy Access Token Escape characters appear when , Need to put “\/” Revert to “/”.
Error code five :80100016," The message contains sensitive information "
Cause analysis :
This error message indicates that the content of the push message contains sensitive information

resolvent :
- Since no sensitive thesaurus is provided , Developers need to detect the content by themselves ;
- Developers can access twitter , After the message is approved by twitter , Huawei will not conduct a second audit . The process of accessing twitter can Reference documents .
matters needing attention :
- After approval of tibian , You need to add the results returned by tibian to Huawei Review Field result In the object , Only in this way can Huawei know that the message has passed the review , Huawei will not conduct a second audit .
- Not to put the whole message body on twitter “content” Field , What needs to be reviewed is “message” What's in it , At the same time, press ASCII The code is sorted in ascending order and then converted to string format for approval .
- Due to the cumbersome audit process , It is suggested to reduce the use of distribution fields , This operation is simpler and will avoid the occurrence of 80100018 Error code , This error code means that the message body sent to the third-party organization for review is inconsistent with the message body when it is issued .
Error code six :sub_error":57303,"error_description":"appid is overload blocked","error":1302
Cause analysis :
Too many requests access_token Flow controlled , The flow control threshold is 1000 individual /5 minute .

resolvent :
Adjust the request logic ,access_token Valid for one hour , No need to apply frequently . Flow control 5 Reset in minutes , You can apply again . more access_token Relevant restrictions can Reference documents .
Learn more >>
visit Official website of Huawei developer Alliance obtain Development guidance document
Huawei mobile service open source warehouse address : GitHub、 Gitee
Pay attention to our , The first time to understand HMS Core Latest technical information ~
边栏推荐
- MySQL date [plus sign / +] condition filtering problem
- 两数,三数之和
- Leetcode-79: word search
- 103. (cesium chapter) cesium honeycomb diagram (square)
- JS scope and scope chain
- FanoutExchange交换机代码教程
- Volcanic engine Xiang Liang: machine learning and intelligent recommendation platform multi cloud deployment solution officially released
- Focus on data | Haitai Fangyuan directly hits the construction idea of data security governance in the securities industry
- What's special about Huawei's innovative solutions to consolidate the foundation of ERP for small and medium-sized enterprises?
- IEC61131 address representation
猜你喜欢

Matlab---eeglab check EEG signal

KEGG通路的从属/注释信息如何获取
![[leetcode] 28. Implement strstr ()](/img/87/0af2da458e53d31012d6535cc132bb.png)
[leetcode] 28. Implement strstr ()

Why did I choose to become a network engineer after graduating from weak current for 3 months

Yolov7 training error indexerror: list index out of range

Miscellaneous notes -- a hodgepodge

Product principles of non-financial decentralized application

预处理指令

Online random coin tossing positive and negative statistical tool

数据库清空表数据并让主键从1开始
随机推荐
从底层结构开始学习FPGA(16)----PLL/MMCM IP的定制与测试
PayPal PHP product trial period "recommended collection"
Struct, enum type and union
FanoutExchange交换机代码教程
“链”接无限可能:数字资产链,精彩马上来!
[depth] the new LAAS agreement elephant: the key to revitalizing the development of the defi track
leetcode-6130:设计数字容器系统
Hello, I'd like to ask questions about C and database operation.
Vulnhub | dc: 6 | [actual combat]
Miscellaneous notes -- a hodgepodge
Leetcode-6129: number of all 0 subarrays
leetcode-6127:优质数对的数目
MySQL master-slave replication data synchronization, summary of common problems
Key network protocols in tcp/ip four layer model
Using the OAP aspect causes the controller to be called repeatedly
"Chain" connects infinite possibilities: digital asset chain, wonderful coming soon!
【FiddlerTX插件】使用Fiddler抓包腾讯课堂视频下载(抓不到包解决方案)
476-82(322、64、2、46、62、114)
Oracle views the SQL statements with the slowest execution and the most queries
MySQL inserts three tables with different values. The association condition is the primary foreign key. How about the syntax of the insertion statement?