MapReduceBMR

错误码

错误码格式

当用户访问API出现错误时,会返回给用户相应的错误码和错误信息,便于定位问题,并做出适当的处理。请求发生错误时通过Response Body返回详细错误信息,遵循如下格式:

参数名 类型 说明
code String 表示具体错误类型。
message String 有关该错误的详细说明。
requestId String 导致该错误的requestId。

例如:

{ 
    "code":"IllegalRequestUrl", 
    "message":"The requested url belongs to domain which is not under acceleration",
    "requestId":" 81d0b05f-5ad4-1f22-8068-d5c9de60a1d7" 
}

公共错误码

错误码 错误消息 HTTP状态码 描述
AccessDenied Access denied. 403 Forbidden 无权限访问对应的资源。
InappropriateJSON The JSON you provided was well-formed and valid, but not appropriate for this operation. 400 Bad Request 请求中的JSON格式正确,但语义上不符合要求。如缺少某个必需项,或者值类型不匹配等。出于兼容性考虑,对于所有无法识别的项应直接忽略,不应该返回这个错误。
InternalError We encountered an internal error. Please try again. 500Internal Server Error 所有未定义的其他错误。在有明确对应的其他类型的错误时(包括通用的和服务自定义的)不应该使用。
InvalidAccessKeyId The Access Key ID you provided does not exist in our records. 403 Forbidden Access Key ID不存在。
InvalidHTTPAuthHeader The HTTP authorization header is invalid. Consult the service documentation for details. 400 Bad Request Authorization头域格式错误。
InvalidHTTPRequest There was an error in the body of your HTTP request. 400 Bad Request HTTP body格式错误。例如不符合指定的Encoding等。
InvalidURI Could not parse the specified URI. 400 Bad Request URI形式不正确。例如一些服务定义的关键词不匹配等。对于ID不匹配等问题,应定义更加具体的错误码,例如NoSuchKey。
MalformedJSON The JSON you provided was not well-formed. 400 Bad Request JSON格式不合法。
InvalidVersion The API version specified was invalid. 404 Not Found URI的版本号不合法。
OptInRequired A subscription for the service is required. 403 Forbidden 没有开通对应的服务。
PreconditionFailed The specified If-Match header doesn't match the ETag header. 412 Precondition Failed 详见ETag。
RequestExpired Request has expired. Timestamp date is XXX. 400 Bad Request 请求超时。XXX要改成x-bce-date的值。如果请求中只有Date,则需要将Date转换为datetime。
IdempotentParameterMismatch The request uses the same client token as a previous, but non-identical request. 403 Forbidden clientToken对应的API参数不一样。
SignatureDoesNotMatch The request signature we calculated does not match the signature you provided. Check your Secret Access Key and signing method. Consult the service documentation for details. 400 Bad Request Authorization头域中附带的签名和服务端验证不一致。

BMR错误码

错误码 错误信息 HTTP状态码 描述
ClusterNotFound The requested cluster does not exist. Please double confirm your clusterId or the existence of the cluster. 404 所访问的集群不存在,请重新确认指定的集群ID是否正确或指定的集群是否存在。
ClusterOverLimit The maximum number of your Running or Waiting clusters is 5. 403 单一用户最多可以保持5个活跃(运行中或空闲中)的集群。
InappropriateJSON The JSON provided is well-formed and valid, but not appropriate for this operation. 400 请求中的JSON格式正确,但语义上不符合要求。如缺少某个必须参数,或者参数类型不匹配等。对于所有无法识别的参数将直接忽略,不会返回这个错误。
InsufficientBalance Insufficient balance, please refill your account. 403 余额不足,请充值。
InternalError We encountered an internal error. Please try again or contact us. 500 所有未定义的其他错误。
InvalidArguments The arguments of step properties can not be parsed correctly. 400 解析作业参数时遇到错误,请重新确认作业参数是否填写正确。
InvalidBosPath The BOS path provided may be malformed or incorrect. 400 BOS路径不合法,请重新确认请求中依赖的BOS文件存在并填写正确的路径。
InvalidInstanceGroupType Instance group type should be Master or Core. 400 实例组类型可以选择Master、Core或者Task。
InvalidInstanceType The instance type specified is invalid. 400 无法识别实例类型,请参考实例规格中的实例类型填写。
InvalidStepType The step type specified is invalid. 400 无法识别作业类型,请参考作业类型的编码进行填写。
InvalidVersion The API version specified is invalid. 404 URI的版本号不合法。当前取值为1。
MalformedJSON The JSON provided is not well-formed. 400 JSON格式不合法。
MissingProperties One or more required fields are missing in step properties. 400 作业属性中缺少必要的信息,请根据作业类型指定必要的字段。
OperationDenied The request could not be fullfilled. 403 执行请求的条件未被满足。
StepNotFound The requested step does not exist. Please double confirm your stepId or the existence of the step. 404 所访问的作业不存在,请重新确认指定的作业ID是否正确或指定的作业是否存在。
StepOverLimit The maximum number of steps in one cluster is 256. 403 单一集群中提交的作业总数不得超过256个,尝试通过交互式访问运行更多作业。
ValidationError The request fails to satisfy the constraints specified by BMR service. 400 请求不符合BMR服务的规范,请检查请求路径,请求头域,各项参数以及消息体格式等是否符合要求。
Invalid_RootDisk_Type The specified type system disk is not exist. 400 该类型的系统盘不存在,请检查您的配置!请参考云磁盘类型的编码进行填写
Invalid_CdsDataDisk_Type The specified type data disk is not exist. 400 该类型的数据盘不存在,请检查您的配置!请参考云磁盘类型的编码进行填写
上一篇
公共头
下一篇
作业操作接口