错误码说明 内容 错误码对应表格 ### 人脸V3在线体验 [颜值、年龄、脸型分析](https://www.xsshome.cn/xai/rest/face/index) 错误码对应表格 如有缺失 请告知整理 错误码 错误信息 描述 1 Unknown error 服务器内部错误,请再次请求, 如果持续出现此类错误,请通过QQ群或工单联系技术支持团队。 2 Service temporarily unavailable 服务暂不可用,请再次请求, 如果持续出现此类错误,请通过QQ群或工单联系技术支持团队。 3 Unsupported openapi method 调用的API不存在,请检查后重新尝试 4 Open api request limit reached 集群超限额 6 No permission to access data 1.无权限访问该用户数据 2.使用的接口是内测接口需要找相关百度技术人员帮您开通 3.使用的接口需要提交工单申请权限 14 IAM Certification failed IAM鉴权失败,建议用户参照文档自查生成sign的方式是否正确,或换用控制台中ak sk的方式调用 17 Open api daily request limit reached 每天请求量超限额 18 Open api qps request limit reached QPS超限额 19 Open api total request limit reached 请求总量超限额 100 Invalid parameter 无效的access_token参数,请检查后重新尝试 110 Access token invalid or no longer valid access_token无效 111 Access token expired access token过期 282000 internal error 服务器内部错误,请再次请求, 如果持续出现此类错误,请通过QQ群或工单联系技术支持团队。 216100 invalid param 1.请求中包含非法参数,请检查后重新尝试 2.看看请求方式是否正确(GET/POST) 216101 not enough param 缺少必须的参数,请检查参数是否有遗漏 216102 service not support 请求了不支持的服务,请检查调用的url 216103 param too long 请求中某些参数过长,请检查后重新尝试 216110 appid not exist appid不存在,请重新核对信息是否为后台应用列表中的appid 216200 empty image 图片为空,请检查后重新尝试 216201 image format error 上传的图片格式错误,现阶段我们支持的图片格式为:PNG、JPG、JPEG、BMP,请进行转码或更换图片 216202 image size error 上传的图片大小错误,现阶段我们支持的图片大小为:base64编码后小于4M,分辨率不高于4096*4096,请重新上传图片 216630 recognize error 识别错误,请再次请求,如果持续出现此类错误,请通过QQ群或工单联系技术支持团队。 216631 recognize bank card error 识别银行卡错误,出现此问题的原因一般为:您上传的图片非银行卡正面,上传了异形卡的图片或上传的银行卡正品图片不完整 216633 recognize idcard error 识别身份证错误,出现此问题的原因一般为:您上传了非身份证图片或您上传的身份证图片不完整 1.也有可能身份证正反面参数填写错误 front:身份证正面;back:身份证背面 2.如果图片不是横向的。则需要额外参数detect_direction进行朝向检测 - true:检测旋转角度并矫正识别; - false:不检测旋转角度,针对摆放情况不可控制的情况建议本参数置为true。 216634 detect error 检测错误,请再次请求,如果持续出现此类错误,请通过QQ群或工单联系技术支持团队。 282003 missing parameters: {参数名} 请求参数缺失 282005 batch processing error 处理批量任务时发生部分或全部错误,请根据具体错误码排查 282006 batch task limit reached 批量任务处理数量超出限制,请将任务数量减少到10或10以下 282110 urls not exit URL参数不存在,请核对URL后再次提交 282111 url format illegal URL格式非法,请检查url格式是否符合相应接口的入参要求 282112 url download timeout url下载超时,请检查url对应的图床/图片无法下载或链路状况不好,您可以重新尝试一下,如果多次尝试后仍不行,建议更换图片地址 282113 url response invalid URL返回无效参数 282114 url size error URL长度超过1024字节或为0 282808 request id: xxxxx not exist request id xxxxx 不存在 282809 result type error 返回结果请求错误(不属于excel或json) 282810 image recognize error 图像识别错误 216111 invalid userid userid信息非法,请检查对应的参数 216300 db error 数据库异常,少量发生时重试即可 216400 backend error 后端识别服务异常,可以根据具体msg查看错误原因 216402 face not found 未找到人脸,请检查图片是否含有人脸 216500 unknown error 未知错误 216611 user not exist 用户不存在,请确认该用户是否注册或注册已经生效(需要已经注册超过5s) 216613 fail to delete user record 删除用户图片记录失败,重试即可 216614 not enough images 两两比对中图片数少于2张,无法比较 216615 fail to process images 服务处理该图片失败,发生后重试即可 216616 image existed 图片已存在 216617 fail to add user 新增用户图片失败 216618 no user in group 组内用户为空,确认该group是否存在或已经生效(需要已经注册超过5s) 216203 image size error 上传的图片base64编码有误,请校验base64编码方式,并重新上传图片 282002 input encoding error 编码错误,请使用GBK编码 282004 invalid parameter(s) 请求中包含非法参数,请检查后重新尝试 282130 no result 当前查询无结果返回,出现此问题的原因一般为:参数配置存在问题,请检查后重新尝试 282131 input text too long 输入长度超限,请查看文档说明 282133 param {参数名} not exist 接口参数缺失 282300 word error word不在算法词典中 282301 word_1 error word_1提交的词汇暂未收录,无法比对相似度 282302 word_2 error word_2提交的词汇暂未收录,无法比对相似度 282303 word_1&word_2 error word_1和word_2暂未收录,无法比对相似度 282900 {param} is empty 必传字段为空 282901 scene_id validate failed, check if is set in AppList 场景ID校验失败,请确认console中app和场景是否关联了:https://console.bce.baidu.com/ai/#/ai/unit/app/list 282902 no available chat bot UNIT环境启动中,请稍后再试;如果持续出现此类错误,请通过QQ群联系技术支持团队。 282903 chat bot internal error UNIT系统异常;如果持续出现此类错误,请通过QQ群联系技术支持团队。 216015 module closed 模块关闭 216401 internal error internal error 282001 logic backend error 业务逻辑层后端服务错误 282100 image transcode error 图片压缩转码错误 282202 antiporn detect timeout 检测超时 282203 image frame size error gif单帧大小超限 282204 image frames limit error gif总帧数超限 282205 image fromat must gif 图片格式错误 282800 configId param is error or null 配置Id不存在 282801 image and imgUrl are empty image和imgUrl均为空 请检查参数名称是否正确 image|imgUrl imageUrl是错误的参数名称哦 282802 either image and imgUrl has value image和imgUrl只能有一个有值 282804 download image error 图片下载失败 282805 internal request failed 调用底层服务异常 282806 image length or width error 图片宽高异常 283501 License file check error 授权文件不匹配 请在控制台中配置正确的包名,并确认使用了正确的授权文件 283502 App identifier unmatch BundleId不匹配 请在控制台中配置正确的包名,并确认使用了正确的授权文件 283503 License file not exists 请确认aip.licence文件存在于assets文件夹中 283504 Network error 网络请求失败 请授权App网络权限并保证网络通畅 283505 Server illegal response 服务器返回数据异常 283506 Load jni so library error JNI加载异常 请确认开发包中的so库被正确加载 283601 Server authentication error 身份验证错误。 请在控制台中配置应用,并确认填写了正确的AK/SK,或使用了正确的授权文件 283602 Authentication time error 时间戳不正确,可能是设备时间异常。 请确保不要改变调用设备的本地时间 283604 App identifier unmatch 错误的PackageName或者BundleId 请在控制台中配置正确的包名,并确认使用了正确的授权文件 283700 Server internal error 服务器内部错误 您可以在工单系统中提交错误信息中的logId,我们将尝试帮您排查错误原因 283300 Invalid argument 无效的参数 1.请检查参数拼接是否有误 2.请检查接口要求是否是JSON格式参数请求 3.请检查Content-Type是否为application/json 216017 not initialized 1.未初始化 请联系群管PM 或者提交工单反馈 2.请检查图像搜索应用是否申请建库 且状态是已建库 216680 item not existed 1.项目不存在cont_sign|image不存在或者被删除 2.cont_sign|image没有入库直接请求删除接口导致 216681 item has existed 1.已经存在相同的brief 2.已经存在相同的图片 415 not support the media type 不支持媒体类型 请检查Headers中Content-Type是否有注明类型 1.Content-Type=application/json 2.Content-Type=application/x-www-form-urlencoded 3.Content-Type=application/json;charset=utf-8 336001 Invalid argument 请检查参数中的image的值是否进行了urlencode处理。 1.定制化接口中。参数格式为JSON拼接。且image参数的值不需要urlencode 2.请检查image参数是否完整。且不包含头信息 3.请检查接口地址中是否拼接了access_token参数 4.如果是PHP,请确保图片路径无误 5.请确保图片base64 不包含头信息 (data:image/jpg;base64, 这样的内容即是头信息,是不需要的。如存在请删除) 6.请确保图片小于4MB。宽高都符合接口要求最小最大值范围内。 示例代码: Java http://ai.baidu.com/forum/topic/show/864061 Python http://ai.baidu.com/forum/topic/show/864043 C# http://ai.baidu.com/forum/topic/show/869901 微信小程序 http://ai.baidu.com/forum/topic/show/870342 易语言 请在QQ群:185289236群文件自行下载 C语言示例代码 http://ai.baidu.com/forum/topic/show/892305 PHP语言示例代码 http://ai.baidu.com/forum/topic/show/892307 C++语言示例代码 http://ai.baidu.com/forum/topic/show/892308 NodeJS语言示例代码 https://ai.baidu.com/forum/topic/show/892314 311 Access token invalid or parse failed 访问令牌无效或解析失败 原因:有可能你多台服务器调用使用同一个APPKEY SECRETKEY 222203 image check fail 1.如果是使用V3人脸对比接口且API调用。并且image_type为BASE64。则image参数不需要urlencode 222001 param[xxx] is null xxx为具体缺失的参数名称 例如: param[image_type] is null param[image] is null 222204 image download fail 图片下载失败,请检查URL是否可以正常访问 222015 param[image_type] format error 1.image_type参数值错误(BASE64,FACE_TOKEN,URL) 222013 param[image] format error image参数格式不对(没遇到过) 222209 face token not exist face_token不存在 1.请检查确认face_token是否正确 2.请检查image_type参数值是否为FACE_TOKEN 3.请确认image参数填写的值为face_token 如果为图片的base64数据,则image_type参数值是BASE64 222202 pic not has face 图片中不包含人脸 222208 the number of image is incorrect 图像的个数不正确 1.如果是V3版本的人脸对比 请检查多个人脸参数是否是json拼接且参数名称为image 而不是images 222002 param[start] formaterror 参数格式错误,参考API说明文档,修改参数 222003 param[length] formaterror 参数格式错误,参考API说明文档,修改参数 222004 param[op_app_id_list] format error 参数格式错误,参考API说明文档,修改参数 222005 param[group_id_list] format error 参数格式错误,参考API说明文档,修改参数 222006 group_id format error 参数格式错误,参考API说明文档,修改参数 222007 uid format error 参数格式错误,参考API说明文档,修改参数 222008 face_id format error 参数格式错误,参考API说明文档,修改参数 222009 quality_conf formaterror 参数格式错误,参考API说明文档,修改参数 222010 user_info format error 参数格式错误,参考API说明文档,修改参数 222011 param[uid_list] format error 参数格式错误,参考API说明文档,修改参数 222012 param[op_app_id]format error 参数格式错误,参考API说明文档,修改参数 222014 param[app_id] formaterror 参数格式错误,参考API说明文档,修改参数 222016 param[max_face_num]format error 参数格式错误,参考API说明文档,修改参数 222017 param[face_field]format error 参数格式错误,参考API说明文档,修改参数 222018 param[user_id]format error 参数格式错误,参考API说明文档,修改参数 222019 param[quality_control]format error 参数格式错误,参考API说明文档,修改参数 222020 param[liveness_control]format error 参数格式错误,参考API说明文档,修改参数 222021 param[max_user_num]format error 参数格式错误,参考API说明文档,修改参数 222022 param[id_card_number]format error 参数格式错误,参考API说明文档,修改参数 222023 param[name] format error 参数格式错误,参考API说明文档,修改参数 222024 param[face_type]format error 参数格式错误,参考API说明文档,修改参数 222025 param[face_token]format error 参数格式错误,参考API说明文档,修改参数 222026 param[max_star_num] format error 参数格式错误,参考API说明文档,修改参数 222201 network not available 服务端请求失败重新尝试 222205 network not availablel 服务端请求失败重新尝试 222206 rtse service return fail 服务端请求失败重新尝试 222207 match user is notfound 未找到匹配的用户 222300 add face fail 人脸图片添加失败重新尝试 222301 get face fail 获取人脸图片失败 222302 system error 服务端请求失败重新尝试 222303 get face fail 获取人脸图片失败 223100 group is not exist 操作的用户组不存在 223101 group is already exist 该用户组已存在 223102 user is already exist 该用户已存在 223103 user is not exist 找不到该用户 223104 group_list is too large group_list包含组数量过多 223105 face is already exist 该人脸已存在 223106 face is not exist 该人脸不存在 223110 uid_list is too large uid_list包含数量过多 223111 dst group is not exist 目标用户组不存在 223112 quality_conf format error quality_conf格式不正确 223113 face is covered 人脸有被遮挡 223114 face is fuzzy 人脸模糊 223115 face light is not good 人脸光照不好 223116 incomplete face 人脸不完整 223117 app_list is too large app_list包含app数量过多 223118 quality control error 质量控制项错误 223119 liveness control item error 活体控制项错误 223121 left eye is occlusion 质量检测未通过 左眼遮挡程度过高 223122 right eye is occlusion 质量检测未通过 右眼遮挡程度过高 223123 left cheek is occlusion 质量检测未通过 左脸遮挡程度过高 223124 right cheek is occlusion 质量检测未通过 右脸遮挡程度过高 223125 chin contour is occlusion 质量检测未通过 下巴遮挡程度过高 223126 nose is occlusion 质量检测未通过 鼻子遮挡程度过高 223127 mouth is occlusion 质量检测未通过 嘴巴遮挡程度过高 222901 system busy 系统繁忙,请重新尝试 222902 system busy 系统繁忙,请重新尝试 222903 system busy 系统繁忙,请重新尝试 222904 system busy 系统繁忙,请重新尝试 222905 system busy 系统繁忙,请重新尝试 222906 system busy 系统繁忙,请重新尝试 222907 system busy 系统繁忙,请重新尝试 222908 system busy 系统繁忙,请重新尝试 222909 system busy 系统繁忙,请重新尝试 222910 system busy 系统繁忙,请重新尝试 222911 system busy 系统繁忙,请重新尝试 222912 system busy 系统繁忙,请重新尝试 222913 system busy 系统繁忙,请重新尝试 222914 system busy 系统繁忙,请重新尝试 222915 system busy 系统繁忙,请重新尝试 222916 system busy 系统繁忙,请重新尝试 222361 system busy 系统繁忙,请重新尝试 222350 police picture is none or low quality 公安网图片不存在或 质量过低 222351 id number and name not match or id number not exist 身份证号与姓名不匹配或该 身份证号不存在 222352 name format error 身份证名字格式错误 222353 id number format error 身份证号码格式错误 222354 id number not exist 公安库里不存在此身份证号 222355 police picture not exist 身份证号码正确,公安库里没有 对应的照片 222360 invalid name or id number 身份证号码或名字非法(公安网校 验不通过) 216505 redis操作失败 H5活体检测错误 216506 redis连接失败 H5活体检测错误 216430 rtse/face 服务异常 H5活体检测错误 216501 没有找到人脸 H5活体检测错误 216502 当前会话已失效 H5活体检测错误 216508 没有找到视频信息 H5活体检测错误 216434 活体检测失败 H5活体检测错误 216908 视频中人脸质量过低(返回的错误信息 会包含具体的错误信息包含 illumiantion(光照不足)angle(角度) blur(人脸模糊) occlusion(遮挡)too large(人脸过大) 等原因 H5活体检测错误 216507 视频中有多张人脸 H5活体检测错误 216433 视频解析服务发生错误 H5活体检测错误 216432 视频解析服务调用失败 H5活体检测错误 216431 语音识别服务异常 H5活体检测错误 216430 验证码位数错误 H5活体检测错误 223120 liveness check fail 活体检测未通过 15 app not exsits or create failed 应用不存在或者创建失败 16 API not supported by authorization 授权不支持的API