全局错误码

优质
小牛编辑
170浏览
2023-12-01

概述

轻应用/订阅号每次调用接口时,可能获得正确或错误的返回码,开发者可以根据返回码信息调试接口,排查错误。

错误码

通用错误码

参数说明
-1系统繁忙.
0请求成功.
40001获取access_token时AppSecret错误,或者access_token无效.
40002不合法的凭证类型
40003不合法的openid
40004不合法的媒体文件类型
40005不合法的文件类型
40006不合法的文件大小
40007不合法的媒体文件id
40008不合法的消息类型
40009不合法的图片文件大小
40013不合法的appid
40014不合法的access_token
40015不合法的菜单类型
40016不合法的按钮个数
40017不合法的按钮类型
40018不合法的按钮名字长度
40020不合法的按钮URL长度
40022不合法的子菜单级数
40029不合法的qt_code
40030不合法的refresh_token
40031不合法的openid列表
40032不合法的openid列表长度
40035不合法的参数
40038不合法的请求格式
40039不合法的URL长度
40050不合法的分组id
40051分组名字不合法
40052不存在的消息id
41001缺少access_token参数
41002缺少appid参数
41003缺少refresh_token参数
41004缺少appsecret参数
41005缺少多媒体文件数据
41006缺少media_id参数
41007缺少子菜单数据
41008缺少qt_code
41009缺少openid
41010富文本消息不满足要求
42001access_token超时
42002refresh_token超时
42003qt_code超时
43001需要GET请求
43002需要POST请求
43003需要HTTPS请求
43004需要接收者关注
44001多媒体文件为空
44002POST的数据包为空
44003图文消息内容为空
44004文本消息内容为空
45001多媒体文件大小超过限制
45002消息内容超过限制
45003标题字段超过限制
45004描述字段超过限制
45005链接字段超过限制
45006图片链接字段超过限制
45008图文消息超过限制
45009接口调用超过限制
45010创建菜单个数超过限制
46001不存在媒体数据
46003不存在的菜单数据
46004不存在的用户
47001解析JSON内容错误
48001api功能未授权
50001用户未授权该api
50002未授权的域名

系统错误码

参数说明
0success
-1system error
46100data not exist
50401unauthorized
45101reject by request too frequently
45002balance has been insufficient, please call 400-161-0019 for help

参数错误码

参数说明
40100invalid param
40100accessToken is required
40100app_id is required
40100account_id is required
40100secret is required
40100org_id is required
40100domain_id is required
40100refresh_token is required
40100page_size must be an integer less than or equals to 100
40100page_size must be an integer greater than 1
40100page_size is required
40100request_page must be an integer
40100request_page must be an integer greater than or equal to 1
40100request_page is required
40100users is required
40100mobile phone is required
40100name is required
40100domain_number is required
40100password is required
40100parent_id is required
40100sync_time must be a number greater than or equal to 0
40100sync_time is required
40100open_id is required

token错误码

参数说明
40401app_id or app_secret is unauthenticated
40402invalid token
42403expired token

组织机构错误码

参数说明
50210organization is not allowed
46306org is not exists
48300this org is not allowed to be delete
40301org name must be difference with before
40300different domain between parent and child
40299org name exists in this parent node
45001org grade is over 15

企业域错误码

参数说明
46100domain is not exists
60037team members over limit with team auth
60038team guest over limit with team auth
50210organization is not allowed
46095organization is not exists

用户错误码

参数说明
0success and the accounts [account1] [account2] will not change password
46001user is not exists
46002manager user cannot to be deleted
40009password is invalid
41101account_id or user_id is required
40090invalid mobile
40091invalid mail
40092invalid name
45003comment is too long
40093invalid privacy
43010mobile is already existed
43011mail is already existed
40094duplicate mobiles
40095duplicate mails
46200open_id is not exists
50211domain not agree edit nickname
46320open_id is not exists in this domain
46321open_id is not follow the app
40019user doesn't follow the app

常见问题-FAQ

  1. 报错信息提示“未授权的域名”,请检查安全域名是否配置正确。如果仍然报此错,可能是轻推APP缓存造成的,可以关闭和杀掉轻推进程,重新进入轻推。

    {
     "errode":50002,
     "errmsg":"未授权的域名"
    }
    
  2. 页面展示出现广告 由于http协议不具备安全加密能力,请求链接容易出现网络劫持。如果出现这种情况,建议向当前使用的网络运营商反馈,或者升级到https加密传输协议。