错误码
功能说明
所有华为云的扩展接口发生错误时,会有自定义错误信息返回,本章节为您介绍每个错误码的含义。
返回体格式说明
当接口调用出错时,会返回错误码及错误信息说明,返回体格式如下所示。
STATUS CODE 400
{
"error_code": "AIS.0014",
"error_msg": "The JSON format of the input data is incorrect."
} 错误码说明
调用接口出错后,将不会返回结果数据。调用方可根据每个接口对应的错误码来定位错误原因。
返回的消息体中是具体的错误代码及错误信息。在调用方找不到错误原因时,可以联系华为云客服,并提供错误码,以便尽快帮您解决问题。
当您调用API时,如果遇到“APIGW”开头的错误码,请参见API网关错误码进行处理。
状态码 | 错误码 | 描述信息 | 说明 | 处理措施 |
|---|---|---|---|---|
400 | AIS.0002 | The authentication token is abnormal. | 验证Token异常。 | 请检查Token是否正确。 |
400 | AIS.0003 | Failed to complete the request because of an internal service error. | 服务内部错误。 | 请联系华为云支持人员,请提交工单联系专业工程师为您服务。 |
400 | AIS.0004 | The request is unauthorized. | 无权限操作。 | 服务未开通,请先开通服务。服务开通请参见《图像识别快速入门》。 |
400 | AIS.0007 | The service has not been enabled yet. | 服务未开通。 | 请开通服务。 |
400 | AIS.0010 | The header is missing or left empty. | 缺少Header或者Header为空。 | HTTP请求缺少必须的header信息,请检查是否有Content-type等必须字段 |
400 | AIS.0011 | The request parameter is missing or left empty. | 缺少请求参数或者参数为空。 | 请检查请求body是否缺少必须字段,请参考对应API的请求说明。 |
400 | AIS.0012 | The request parameter is not supported. | 请求参数不支持。 | 请检查请求中的字段不合法,请参考对应API的请求说明。 |
400 | AIS.0013 | The request method is not allowed. | 请求方法不允许。 | 请检查请求方法。 |
400 | AIS.0014 | The JSON format of the input data is incorrect. | 输入数据JSON格式错误。 | 请检查输入数据的JSON格式。 |
400 | AIS.0015 | Base64 decoding of the input data is incorrect. | 输入数据BASE64解码错误。 | 图片的Base64编码错误,请检查Base64内容 |
400 | AIS.0020 | The size of the request body exceeds the upper limit. | 请求体大小超过限制。 | 请检查请求体大小。 |
400 | AIS.0021 | The requested file type is not supported. | 请求的文件类型不支持。 | 请检查请求的文件类型。 |
400 | AIS.0022 | The URL is invalid. | URL不合法。 | 请检查输入的url格式。 |
400 | AIS.0023 | The file stored on OBS is oversized. | 存储在OBS上的文件过大。 | 检查图片格式是否是服务支持的格式。具体请参见《图像识别使用限制》。 |
400 | AIS.0024 | Failed to obtain the file from OBS. The signature has expired or fails to pass the authentication. | 从OBS上获取文件失败。原因可能为签名过期或签名验证未通过等。 | 原因可能为签名过期或签名验证未通过等。 |
400 | AIS.0025 | The file stored on OBS is empty. | 存储在OBS上的文件为空。 | 请先上传文件到OBS上。 |
400 | AIS.0026 | The token type is incorrect. The token of the project type must be used. | token类型错误,应使用project类型的token。 | 应使用project类型的token。 |
400 | AIS.0027 | The account has been frozen. | 此账户已被冻结。 | 请检查是否账户是否欠费。 |
400 | AIS.0028 | The job is not owned by the current user. | 此任务不属于当前用户。 | 请检查当前账户。 |
400 | AIS.0029 | Failed to download the file from the Internet. Check whether the URL of the file is correct and supported. | 从外网下载文件失败。检查文件url是否正确以及是否在支持的范围内。 | 检查文件url是否正确以及是否在支持的范围内。 |
400 | AIS.0030 | Failed to find the job. The job has expired or the passed job_id is incorrect. Check whether job_id is correct. | 任务未找到。任务已过期被清理了或者传入的job id错误,检查job id是否正确。 | 任务已过期被清理了或者传入的job id错误。请检查job id是否正确 |
400 | AIS.0031 | The maximum number of uncompleted jobs has been reached. The submission of new jobs has been suspended. | 未处理完的任务总数达到限制。暂停提交新任务。 | 暂停提交新任务。 |
400 | AIS.0032 | The monthly free calls have been used up. To continue to use the service, top up your account. | 月免费调用量已使用完。如需继续使用给关联的华为云账户充值即可。 | 如需继续使用给关联的华为云账户充值即可。 |
400 | AIS.0201 | An exception occurred during the process of obtaining the input image. | 获取输入图像异常。 | 请检查输入图像,重新获取。 |
400 | AIS.0202 | The image format is not supported. | 图片格式不支持。 | 检查图片格式是否是服务支持的格式。 |
400 | AIS.0203 | The input parameter does not meet the requirements. | 输入参数不符合规范。 | 请重新检查输入的参数。 |
400 | AIS.0204 | The color depth is not supported. | 图片位深不支持。 | 请重新检查。 |
400 | AIS.0205 | The resolution of the image exceeds the upper limit. | 图片分辨率超限。 | 检查图片格式是否是服务支持的格式。 |
400 | AIS.0206 | Algorithm calculation failed. | 算法计算失败。 | 请重新检查。如需帮助请联系华为云支持人员,请通过工单进行处理。 |
400 | AIS.0501 | The input parameter is invalid. | 输入参数不合法。 | 请重新检查输入的参数。 |
400 | AIS.0502 | The image format is not supported. | 图像格式不支持。 | 检查图片格式是否是服务支持的格式。具体请参见《图像识别使用限制》。 |
400 | AIS.0503 | The image is damaged. | 图像受损。 | 检查图像是否受损,然后重新上传符合要求的图片文件。 |
400 | AIS.0504 | The image size does not meet requirements. | 图像大小不符合要求。 | 检查图像大小是否符合要求。 图片base64编码,要求base64编码后大小不超过10M,最短边至少15px,最长边最大4096px,支持JPEG/PNG/BMP/WEBP格式。 |
400 | AIS.0505 | Failed to run the algorithm. | 算法运行失败。 | 请重新检查,如需帮助请联系华为云支持人员,请通过工单进行处理。 |
400 | AIS.0506 | An internal error occurred. | 出现内部错误。 | 请联系华为云支持人员,请通过工单联系技术支持人员。 |
400 | APIG.0101 | The API does not exist or has not been published. | 您所访问的API不存在或尚未在环境中发布。 | 请检查输入的api信息是否正确,是否该服务存在在对应区域中。检查API的URL是否拼写正确,HTTP请求方法(POST,GET等)是否正确,请检查服务调用配置的域名和uri信息是否正确,域名可参考域名。 |
400 | APIG.0301 | 1. Incorrect IAM authentication information: Failed to decrypt the token. Check whether the entered token is complete. 2. The validity period of a token is 24 hours. If the token expires, obtain a new token and pass it. 3. The AK/SK authentication fails. Check whether the AK/SK is correct and whether the account is restricted due to arrears. | 1.IAM身份验证信息不正确:解密令牌失败,检查输入的token是否完整。 2.token有效期为24小时,token超时,重新传入获取token值。 3.因为AK/SK认证失败,请检查AK/SK是否正确,账号是否因欠费等原因权限被限制。 | decrypt token fail:发送的HTTP请求header中x-auth-token的token请求认证信息错误,请检查发送的请求和token。 token expires:token超时,请重新获取新token传入。 verify aksk signature fail:请检查AK、SK是否正确,账号是否欠费。 |
400 | APIG.0201 | The request body is oversized. | 请求体过大。 | 请检查请求的body体是否过大,具体请参见《图像识别使用限制》,进行调整。 |
400 | APIG.0308 | The request is sent too fast and exceeds the default rate limit of the service. | 请求发送太快,超过了服务的默认配置限流。 | 请求发送太快,达到了API的限速阈值,请降低请求速度。如有更高请求速度要求,请联系华为云支持人员,请通过工单进行处理。 |
400 | ModelArts.0203 | Invalid token. | 非法Token。 | 请检查Token是否正确。 |
400 | ModelArts.4101 | The token is empty. | Token为空。 | 发送的HTTP请求header中没有带x-auth-token的token请求认证信息,请检查发送的请求。 |
400 | ModelArts.4102 | Failed to parse the token. | 解析Token失败。 | 发送的HTTP请求header中x-auth-token的token请求认证信息错误,请检查发送的请求和token。 |
400 | ModelArts.4103 | The token is invalid. | Token不合法。 | 发送的HTTP请求header中x-auth-token的token请求认证信息错误,请检查发送的请求和token。 |
400 | ModelArts.4104 | The length of the request body is invalid. | 请求body体长度不合法。 | 请检查请求body体长度。 |
400 | ModelArts.4105 | The JSON format of the request body is incorrect. | 请求body体json格式不对。 | 请检查请求body体是否符合json格式。 |
400 | ModelArts.4106 | The account is restricted. | 用户账号受限。 | 请检查用户资源状态,账号受限原因请参考账号中心相关描述。 |
400 | ModelArts.4107 | An exception occurred when obtaining the temporary AK/SK. | 获取用户临时AK,SK异常。 | 请联系华为云支持人员,通过工单进行处理。 |
400 | ModelArts.4201 | The request URL does not contain the service ID. | 请求url中需要包含服务ID。 | 请检查请求url中的服务ID。 |
400 | ModelArts.4202 | The request URL format is invalid. | 请求url格式不合法。 | 请检查请求url格式。 |
400 | ModelArts.4203 | No access permission. | 没有权限访问。 | 请检查访问权限。 |
400 | ModelArts.4204 | The API is not subscribed to. | 没有订阅该API。 | 请订阅该API,订阅API请参考服务介绍开通申请服务。如已开通服务,请检查开通服务的区域与服务调用的一致,若一致请检查API的URL是否拼写正确,HTTP请求方法(POST,GET等)是否正确。 |
400 | ModelArts.4601 | The external URL is invalid. | 外网下载地址不合法。 | 请检查输入的url下载地址参数格式。 |
400 | ModelArts.4603 | The file failed to be downloaded from the external URL. | 下载外网URL文件失败。 | 请检查输入的url是否可下载。 |
400 | ModelArts.4702 | The OBS agency failed to be queried. | 查询OBS委托失败。 | 请检查是否已开通给服务的OBS委托。 |
400 | ModelArts.4703 | The OBS URL is invalid. | OBS地址不合法。 | 请检查输入的OBS的url地址。 |
400 | ModelArts.4704 | Failed to obtain the OBS file. | 获取OBS文件失败。 | 下载OBS文件失败,请检查对应的文件是否存在。 |
400 | ModelArts.4705 | The OBS file is oversized. | OBS文件大小超限。 | 请使用符合服务大小限制的文件作为输入,具体请参见《图像识别使用限制》。 |
400 | ModelArts.4706 | The OBS file does not exist. | OBS文件不存在。 | 下载OBS文件失败,请检查对应的文件是否存在。 |
403 | AIP.0001 | The authentication token is abnormal. | token鉴权异常。 | 检查token。 |
500 | AIP.0500 | Failed to complete the request because of an internal service error. | 服务内部错误。 | 请联系华为云支持人员,通过工单进行处理。 |
401 | AIP.0003 | The request is unauthorized. | 请求未经授权。 | 检查请求URL中的项目ID。 |
400 | AIP.0004 | The service does not exist. | 服务不存在。 | 检查服务名或者服务版本是否正确。 |
400 | AIP.0005 | Lack Header or Header %s is empty. | header缺失或者header为空。 | 检查header。 |
400 | AIP.0006 | Lack the request parameter, or the request parameter %s is empty. | 请求参数缺失或者请求参数为空。 | 检查是否缺少必选参数。 |
400 | AIP.0007 | The request parameter %s is incorrect. | 请求参数不正确。 | 检查服务允许的请求参数。 |
405 | AIP.0008 | The request method %s is not allowed, allow is %s. | 请求方法不允许。 | 检查服务允许的请求方法。 |
400 | AIP.0009 | The JSON format of the input data is incorrect. | 输入数据的json格式不正确。 | 检查输入数据的json格式。 |
400 | AIP.0010 | The param:%s, val:%s , exceeds the range:[%s,%s]. | 参数超出范围。 | 检查参数正确范围。 |
400 | AIP.0011 | Service of %s has been subscribed. | 服务已订阅。 | 请勿重复订阅服务。 |
400 | AIP.0012 | The input parameter is incorrect. | 输入参数错误。 | 检查服务输入参数是否正确。 |
400 | AIP.0013 | Lack the parameter %s, or the parameter is incorrect. | 订阅参数缺失或参数不正确。 | 检查服务输入参数是否正确。 |
400 | AIP.0014 | %s already exists. | 数据已存在。 | 检查已存在的数据。 |
400 | AIP.0015 | Service of %s hasn't been subscribed. | 服务未订阅。 | 请先订阅该服务。 |
400 | AIP.0016 | The request parameter is wrong, %s | 请求参数错误。 | 检查服务允许的请求参数。 |
400 | AIP.0017 | The task id %s not exist. | 任务ID不存在。 | 检查任务ID是否正确或者已经过期。 |
400 | AIP.0018 | Unable to get agency. | 获取委托失败。 | 检查服务是否开启委托。 |
400 | AIP.0019 | Multi input is not supported in current service: [%s], version: [%s]. | 当前服务版本不支持多输入。 | 检查服务是否支持多输入。 |
400 | 其他 | 如若出现其他无法解决的错误码,请通过工单进行处理。 | ||

