错误码
调用接口出错后,将不会返回结果数据。调用方可根据每个接口对应的错误码来定位错误原因。
当调用出错时,返回的消息体中是具体的错误代码及错误信息。在调用方找不到错误原因时,可以联系华为云客服,并提供错误码,以便我们尽快帮您解决问题。
当您调用API时,如果遇到“APIGW”开头的错误码,请参见API网关错误码进行处理。
| 状态码 | 错误码 | 错误信息 | 描述 | 处理措施 |
|---|---|---|---|---|
| 400 | IS.0001 | The request parameter is missing or empty. | 缺少请求参数或者参数为空。 | 检查请求参数是否合法。 |
| 400 | IS.0002 | The type of the request parameter is not supported. | 请求参数类型不支持。 | 检查请求参数是否合法。 |
| 400 | IS.0003 | The request parameter cannot be empty. | 请求参数不能为空。 | 检查请求参数是否合法。 |
| 400 | IS.0004 | Exception verifying token. | 验证Token异常。 | 检查Token是否为最新获取。 |
| 400 | IS.0005 | The header is missing or empty. | 缺少Header或者Header为空。 | 检查Header是否正确。 |
| 400 | IS.0006 | The request body is too big. | 请求体大小超过限制。 | 请求体应限制在合理范围内。 |
| 400 | IS.0007 | Invalid instance name. | 无效的实例名称。 | 检查实例名称是否正确。 |
| 400 | IS.0008 | The JSON format of the input data is incorrect. | 输入数据JSON格式错误。 | 检查输入JSON格式是否合法。 |
| 400 | IS.0009 | The request failed due to an internal error. | 服务内部错误导致请求失败。 | 根据服务返回错误信息定位问题。 |
| 400 | IS.0010 | The request method is not allowed. | 请求方法不允许。 | 检查请求方法是否合理。 |
| 400 | IS.0011 | The user is not allowed to use the request method. | 请求方法不允许此用户使用。 | 更换用户或添加权限。 |
| 400 | IS.0012 | Operation timed out. | 操作超时。 | 检查服务是否正常运行。 |
| 400 | IS.0013 | The token is empty. | Token为空。 | 填写正确的Token。 |
| 400 | IS.0014 | Instance status is abnormal. | 实例状态异常。 | 检查实例是否异常。 |
| 400 | IS.0015 | The model file does not exist. | 模型文件不存在。 | 检查模型文件是否存在。 |
| 400 | IS.0016 | The path is invalid. | 路径不合法。 | 检查路径是否合法。 |
| 400 | IS.0017 | The request is not authorized. | 请求未授权。 | 申请授权。 |
| 400 | IS.0018 | The OBT is not applied for. | 未申请公测。 | 申请公测。 |
| 400 | IS.0019 | The user service ID does not match the project ID. | 用户服务ID与项目ID不匹配。 | 输入匹配的ID。 |
| 400 | IS.0020 | The value cannot be obtained. | 禁止获取。 | 检查是否在黑名单中,若在黑名单中,需要先删除。 |
| 400 | IS.0021 | The token has expired. | Token已过期。 | 获取最新的Token。 |
| 400 | IS.0022 | The current user has restricted rights. | 当前用户权限被限制。 | 检查账户余额或联系管理员。 |
| 400 | IS.1001 | The service does not exist. | 服务不存在。 | 检查服务名是否正确。 |
| 400 | IS.1002 | No tag value. | 无标签值。 | 查看输入图片中是否带有标签信息。 |
| 400 | IS.1003 | Too many tags. | 标签数量超出大小限制。 | 标签数量应限制在合理范围内。 |
| 400 | IS.1004 | The tag does not match. | 标签不匹配。 | 输入正确的tag名称。 |
| 400 | IS.1005 | Failed to add the image. | 添加图片失败。 | 检查请求参数是否合法。 |
| 400 | IS.1006 | Failed to delete the image. | 删除图片失败。 | 检查请求参数是否合法。 |
| 400 | IS.1007 | Failed to update the image. | 更新图片失败。 | 检查请求参数是否合法。 |
| 400 | IS.1008 | Failed to search for the image. | 搜索图片失败。 | 检查请求参数是否合法。 |
| 400 | IS.1009 | Failed to query the image. | 查询图片失败。 | 检查请求参数是否合法。 |
| 400 | IS.1010 | The value of limit is incorrect. | 参数limit不合理。 | 参数limit要求为正整数,要求为大于0。 |
| 400 | IS.1011 | The value of offset is incorrect. | 参数offset不合理。 | 参数offset要求为大于等于0的整数。 |
| 400 | IS.1015 | Too many images in the instance. | 实例图片数量超过规格。 | 联系华为云客服,扩大实例规格。 |
| 400 | IS.1016 | Failed to detect the image. | 检测图片失败。 | 检查行业类型是否支持。 |
| 400 | IS.2000 | Failed to download the image. | 图片下载失败。 | 检查图片路径是否存在。 |
| 400 | IS.2001 | The image format is not supported. | 图片格式不支持。 | 更换图片格式,仅支持JPEG/JPG/PNG/BMP格式。 |
| 400 | IS.2002 | The image file has been damaged. | 图片文件已损坏。 | 检查图像文件是否完整。 |
| 400 | IS.2003 | The OBS object cannot be obtained. | 无法获取OBS对象。 | 检查OBS访问是否正常,若正常,检查对象是否存在。 |
| 400 | IS.2004 | The OBS bucket does not exist. | OBS桶不存在。 | 检查OBS桶,是否存在。 |
| 400 | IS.2005 | Failed to save the temporary file. | 临时文件保存失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.2006 | The image is not indexed. | 图片未被索引。 | 查看图像搜索服务是否正常。 |
| 400 | IS.2007 | Base64 decoding of the input data is incorrect. | 输入数据BASE64解码错误。 | 检查输入数据是否正确。 |
| 400 | IS.2008 | The request parameters must contain path information. | 请求参数中需要有路径信息。 | 在请求参数中添加路径信息。 |
| 400 | IS.2009 | The request parameters must contain tag information. | 请求参数中需要有tag信息。 | 在请求参数中添加tag信息。 |
| 400 | IS.2010 | The request parameter does not exist. | 请求参数不存在。 | 检查请求参数是否完整。 |
| 400 | IS.2011 | OBS is not authorized to obtain images. | 无OBS获取图片权限。 | 检查OBS是否授权。 |
| 400 | IS.2012 | The image path cannot be empty. | 图像路径不能为空。 | 请求参数中需要包含path字段。 |
| 400 | IS.2013 | The path and file in the request parameter cannot be empty at the same time. | 请求参数中path和file不能同时为空。 | 请求参数中path和file不能同时为空。 |
| 400 | IS.2014 | Failed to create the cache file path. | 缓存文件路径创建失败。 | 重新请求。 |
| 400 | IS.2015 | The request parameter must contain path or file. | 请求参数中必须包含path或file。 | 请求参数中必须包含path或file。 |
| 400 | IS.2016 | Failed to create the OBS client. | 创建OBS客户端失败。 | 检查OBS桶是否授权。 |
| 400 | IS.2019 | The instance does not exist. | 实例不存在。 | 检查是否存在。 |
| 400 | IS.2100 | Failed to add the image. | 图片添加失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.2101 | Failed to delete the image. | 图片删除失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.2102 | Failed to search for the image. | 图片搜索失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.2103 | Failed to check the image. | 图片检查失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.2104 | Failed to update the image information. | 更新图片信息失败。 | 检查更新请求是否正确。 |
| 400 | IS.2105 | The service is not running properly. | 服务未正常运行。 | 重启服务或联系管理员。 |
| 400 | IS.2106 | The image is too big. | 图像尺寸超过最大限制。 | 图像尺寸最大不超过2048*2048。 |
| 400 | IS.2107 | The image is too small. | 图像尺寸未达到最小限制。 | 图像尺寸不能小于100*100。 |
| 400 | IS.2108 | An error occurred while the service is running. | 服务运行过程中发生错误。 | 检查调用接口方法是否正确。 |
| 400 | IS.2109 | Failed to connect to the gallery. | 连接图片库失败。 | 检查实例是否正常。 |
| 400 | IS.2111 | Failed to perform image detection. | 图片检测过程失败。 | 检查行业类型参数是否支持。 |
| 400 | IS.2112 | The request parameter must contain image. | 请求参数中必须包含image。 | 检查请求参数image是否存在。 |
| 400 | IS.3000 | The service name already exists. | 服务名称已存在。 | 服务已存在。 |
| 400 | IS.3001 | Failed to save the service information. | 服务信息保存失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.3002 | Failed to delete services from some nodes. | 部分节点删除服务失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.3003 | Failed to delete the instance from the node. | 节点删除实例失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.3004 | The model cannot be used. | 模型不允许使用。 | 检查模型名称,路径是否正确。 |
| 400 | IS.3005 | The service name does not exist. | 服务名称不存在。 | 服务名错误或服务未创建。 |
| 400 | IS.3006 | The model is in use. | 模型已被用户使用。 | 模型已使用,无需重新添加模型。 |
| 400 | IS.3007 | The user does not exist. | 用户不存在。 | 确定用户名是否正确。 |
| 400 | IS.3008 | Failed to start the instance. | 启动实例失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.3009 | Decompressing failed. | 解压失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.3010 | Failed to start the service. | 启动服务失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.3011 | Failed to initialize the configuration file. | 初始化配置文件失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.3012 | No management instance is found. | 未发现管理实例。 | 查看图像搜索服务是否正常。 |
| 400 | IS.3013 | Failed to obtain the instance. | 无法获取实例。 | 查看图像搜索服务是否正常。 |
| 400 | IS.3014 | The model name does not exist. | 模型名称不存在。 | 检查模型名称是否正确。 |
| 400 | IS.3015 | Failed to obtain the OBS bucket. | 获取OBS桶失败。 | 检查OBS桶名是否正确。 |
| 400 | IS.3016 | Failed to authorize the OBS bucket. | OBS桶授权失败。 | 检查OBS服务是否正常。 |
| 400 | IS.3017 | The OBS bucket is empty. | OBS桶为空。 | OBS桶中无内容。 |
| 400 | IS.3018 | Failed to obtain the OBS bucket list. | 获取OBS桶列表失败。 | 检查OBS操作是否正确。 |
| 400 | IS.3019 | Failed to add the OBS bucket. | 添加OBS桶失败。 | 检查OBS操作是否正确。 |
| 400 | IS.3020 | Failed to obtain the bucket listening event. | 获取桶监听事件失败。 | 检查OBS操作是否正确。 |
| 400 | IS.3021 | No instance is found. | 未发现实例。 | 检查实例是否存在。 |
| 400 | IS.3022 | Failed to change the instance name. | 修改实例名称失败。 | 检查请求是否正确。 |
| 400 | IS.3023 | The instance tag does not exist. | 实例标签不存在。 | 检查是否创建实例标签。 |
| 400 | IS.3024 | Too many instance tags. | 实例标签超过最大数量限制。 | 实例标签数量不能超过10个。 |
| 400 | IS.3025 | The instance tag cannot be deleted. | 实例标签无法删除。 | 暂不支持删除实例标签功能。 |
| 400 | IS.3026 | Failed to add the instance tag. | 添加实例标签失败。 | 检查添加请求是否正确。 |
| 400 | IS.3027 | Failed to upload the model to OBS. | 向OBS上传模型失败。 | 检查OBS服务是否正常。 |
| 400 | IS.3028 | Failed to create the instance. | 创建实例失败。 | 检查创建请求是否正确。 |
| 400 | IS.3029 | Failed to obtain the instance model. | 获取实例模型失败。 | 检查实例模型是否存在。 |
| 400 | IS.3030 | The instance cannot be deleted because it is being created. | 实例创建中,无法删除。 | 实例创建过程中无法执行删除操作。 |
| 400 | IS.3031 | Failed to obtain the statistics. | 获取统计信息失败。 | 检查请求是否正确,检查服务是否正常。 |
| 400 | IS.3032 | The instance is being deleted. | 实例正在删除。 | 实例删除中,不能重复执行删除操作。 |
| 400 | IS.3033 | Failed to obtain the batch import task. | 获取批量导入任务失败。 | 检查批导数据是否存在。 |
| 400 | IS.3034 | The blacklist or whitelist is invalid. | 无效的黑白名单。 | 检查黑白名单。 |
| 400 | IS.3035 | The instance scale does not exist. | 不包含对应的实例规格。 | 检查实例规格是否正确。 |
| 400 | IS.3036 | The user instance description is too long. | 用户实例描述信息过长。 | 描述字符数量不能超过512个。 |
| 400 | IS.3037 | A bucket event exists in the instance. | 实例存在桶事件。 | 实例不能存在多个桶事件。 |
| 400 | IS.3038 | An offline import task is running on the instance. The instance cannot be deleted. | 实例有脱机导入任务,现在无法删除。 | 等待脱机导入任务结束后删除。 |
| 400 | IS.3039 | Failed to reset the instance scale. | 实例重置规格失败。 | 检查服务状态并重试。 |
| 400 | IS.3040 | Failed to reset the instance to a smaller scale. | 重置实例规格小于原有规格。 | 重置规格需要大于原有规格。 |
| 400 | IS.3041 | Failed to obtain the instance scale. | 获取实例规格失败。 | 检查服务状态,重新获取。 |
| 400 | IS.3050 | Failed to obtain the OBS bucket folder list. | 获取OBS桶文件夹列表失败。 | 该OBS桶名下不存在文件夹列表。 |
| 400 | IS.3051 | The bucket name in the path does not match the name of the selected OBS bucket. | 该路径中的桶名和选择的OBS桶名不一致。 | 检查路径中包含的桶名与选择的桶名是否一致。 |
| 400 | IS.3052 | The path does not contain the file directory or list in the bucket. | 该路径中未包含桶内文件目录或列表。 | 检查输入路径是否正确。 |
| 400 | IS.3053 | The file list or directory in the path does not exist. | 该路径中的文件列表或目录不存在。 | 检查输入路径是否正确。 |
| 400 | IS.4000 | Failed to download the system package. | 下载系统包失败。 | 查看图像搜索服务是否正常。 |
| 400 | IS.4001 | The OBS bucket is empty. | OBS桶为空。 | OBS桶为空。 |
| 400 | IS.4002 | The service cannot be initialized. | 无法初始化服务。 | 查看图像搜索服务是否正常。 |
| 400 | IS.4003 | Failed to obtain the search result. | 无法获取搜索结果。 | 查看图像搜索服务是否正常。 |
| 400 | IS.4004 | The instance name does not exist. | 实例名不存在。 | 检查实例名是否存在。 |
| 400 | IS.4005 | Failed to create the offline import task. | 创建离线导入任务失败。 | 重新启动离线导入任务。 |
| 400 | IS.4006 | The account is frozen. | 账号被冻结。 | 检查账号是否欠费,若欠费,充值后系统自动解冻。 |
| 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文件失败,请检查对应的文件是否存在。 |
| 400 | 其他 | 如若出现其他无法解决的错误码,请通过工单联系我们。 | ||