You need to enable JavaScript to run this app.
文档中心
通用图像分割

通用图像分割

复制全文
下载 pdf
通用图像分割
通用返回字段
复制全文
下载 pdf
通用返回字段
通用返回字段
字段类型是否必返回说明
ResponseMetadatajson否网关返回值,若此字段返回且值不为None,则无需关注其他字段
request_idString否,若ResponseMetadata未返回或值为None时,必返回代表此次请求的唯一ID
time_elapsedInt否,若ResponseMetadata未返回或值为None时,必返回整个请求所花费的时间,单位为毫秒
codeInt否,若ResponseMetadata未返回或值为None时,必返回表示本次验证的结果状态码。见底下 通用code对应表 和 各API文档 code对应表
messageString否,若ResponseMetadata未返回或值为None时,必返回当请求失败时返回此字符串,否则此字段不存在
datajson否,若ResponseMetadata未返回或值为None时,必返回json字符串,里面包含的是各接口的业务数据

ResponseMetadata字段说明

字段类型是否必返回说明
RequestIdstring是网关请求的唯一ID
Actionstring否接口名
Versionstring否版本号
Servicestring否服务名
Regionstring否地区
ErrorErrorInfo否错误信息

ErrorInfo字段说明

字段类型是否必返回说明
Codestring是网关错误码,详见下方网关错误码与错误信息
Messagestring是网关错误信息,详见下方网关错误码与错误信息
网关错误码与错误信息

Code

CodeN

Message

备注

http-code

UndefinedError

100001

Undefined Internal Error. Pls Contact With Admin.

一般不出现这个问题,这是系统开发兜底的错误提示

500

MissingParameter

100002

The request is missing %s parameter.

关键参数缺失,例如Action, Version参数

400

MissingAuthenticationToken

100003

Request is missing Authentication Token.

缺少身份认证的必要信息,例如Auth信息

401


MissingRequestInfo

100004

The request is missing %s information.

缺少请求必要信息,例如:Accesskey,service,region等

400

MissingSignature

100005

The request is missing signature.

缺少签名结果

401

InvalidTimestamp

100006

The Signature of the request is expired.

请求过期或请求的签名时间来自未来

403

ServiceNotFound

100007

This service[%s] not found.

请求的服务不存在

404

InvalidActionOrVersion

100008


Could not find operation %s for version %s.

请求接口不存在

404

InvalidClientTokenId

100009

The security token[%s] included in the request is invalid.

请求的AK不合法


401

SignatureDoesNotMatch

100010

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.

签名结果不正确

401

ServiceShouldCallSelfApi


100011

The service(%s) should call self-api.

使用service aksk访问请求,仅能访问自己的接口和公共服务的接口。公共服务例如:iam

403

LackPolicy

100012

Request was rejected because of lack of policy.

子用户请求缺少权限(默认是deny的)

403

AccessDenied

100013

User is not authorized to perform: %s on resource: %s.

子用户拥有的权限不支持当前操作

403

InternalError

100014

Service has some internal Error. Pls Contact With Admin.

TOP自身内部错误,例如DB error

500

FailToConnect

100015

Top Fail to Connect to Internal Service.

业务服务连接不上,这里的业务一般指具体的imagex、vod

502

InternalServiceTimeout

100016

Internal Service is timeout. Pls Contact With Admin.

内部服务执行超时,请查看服务在TOP上配置的超时时间

504

InnerApiNeedAccountInfo

100017

The inner request should have account info.

Service aksk请求内部服务时缺少了账号信息

400

FlowLimitExceeded

100018

Request was rejected because the request speed of this openAPI is beyond the current flow control limit.

请求过于频繁,超出了基本限速

429

ServiceUnavailableTemp

100019

Service is busy, please try again later.

处于熔断状态的服务暂时不可访问,稍后重试

503

MethodNotAllowed

100020

HTTP Method Not Allowed.

Http method不合法

405

LackProjectPolicy

100021

Request was rejected because of lack of project policy.

请求需要验证Project的权限,当前Project权限验证不合法

403

InternalServiceError


100023

Service has some internal Error. Pls Contact With Admin.

业务服务存在故障,这里的业务一般指具体的imagex、vod。故障不来自TOP

502
通用code对应表
http_codecode状态类型说明
20010000ECSuccess请求成功
40050200ECReqInvalidArgs参数错误
40050201ECReqMissingArgs缺少参数
40050204ECParseArgs参数类型错误/参数缺失
40050205ECImageSizeLimited图像尺寸超过限制
40050206ECImageEmpty请求参数中没有获取到图像
40050207ECImageDecodeError图像解码错误: 没有获取到图像或者通过image_base64参数传递图像是base64解码错误
40150400ECAuth权限校验失败
40450402ECReqMethod访问的接口不存在
42950429ECReqLimit超过调用QPS限制
50050500ECInternal服务器内部错误
50050501ECRPCInternal服务器内部RPC错误
最近更新时间:2021.02.23 10:42:13
这个页面对您有帮助吗?
有用
有用
无用
无用