其他分享
首页 > 其他分享> > 【Azure 环境】记录使用Notification Hub,安卓手机收不到Push通知时的错误,Error_Code 30602 or 30608

【Azure 环境】记录使用Notification Hub,安卓手机收不到Push通知时的错误,Error_Code 30602 or 30608

作者:互联网

问题描述

使用Azure Notification Hub + Baidu 推送遇见的两次报错为:

1. {"request_id":2921358089,"error_code":30602,"error_msg":"request params not valid. parameter user_id is not numeric"}

2. {"request_id":2761069009,"error_code":30608,"error_msg":"bind relation not found. "}

问题解答

因为错误消息是由百度推送返回到Azure Notification Hub,所以这个错误的解释需要从百度推送端进行分析。根据百度云推送的服务端错误码列表(https://push.baidu.com/doc/restapi/error_code)查看 30602 和 30608。

根据以上解释,错误原因为Userid和Channel ID参数问题,这两个值为用户,设备注册到百度云上后,回传的参数。所以需要检测这两个参数。

 

参考文档

通过百度开始使用通知中心:https://docs.azure.cn/zh-cn/notification-hubs/notification-hubs-baidu-china-android-notifications-get-started#connect-your-app-to-the-notification-hub

百度云推送服务端错误码:https://push.baidu.com/doc/restapi/error_code

标签:baidu,Code,Hub,Notification,code,error,推送,百度,notification
来源: https://www.cnblogs.com/lulight/p/16210091.html