错误码
在调用MaaS模型服务时,可能出现的错误码及相关信息如下。
|
HTTP状态码 |
错误码 |
错误信息 |
说明 |
|---|---|---|---|
|
400 |
ModelArts.81001 |
Failed to format request body, %s is empty. 示例:Failed to format request body, model is empty. |
解析body体失败,必填参数校验失败。 |
|
400 |
ModelArts.81001 |
Failed to format request body, %s is %s, not one of %s. 示例:Failed to format request body, messages[1].role is SYSTEM, not one of ['system', 'user', 'assistant', 'function', 'tool']. |
解析body体失败,参数枚举值校验失败。 |
|
400 |
ModelArts.81001 |
Invalid request header x-span-id, max length is 64. |
解析请求头中的x-span-id,用户传入的不能超过64位。 |
|
400 |
ModelArts.81002 |
Failed to get the authorization header. |
请求头中authorization/x-auth-token为空,或者authorization格式不是Bearer开头。 |
|
401 |
ModelArts.81003 |
Invalid authorization header. |
从Redis中解析API Key失败。 |
|
401 |
ModelArts.81007 |
Invalid x-auth-token header. |
解析x-auth-token失败。 |
|
401 |
ModelArts.81008 |
Failed to get appId from path. |
智能应用校验时,解析path中的appId失败。 |
|
401 |
ModelArts.81015 |
Invalid client ip %s, rejected by api key ip allowlist setting. |
API Key解析后,校验来源IP白名单失败。 |
|
401 |
ModelArts.81015 |
Invalid model %s, rejected by api key model allowlist setting. |
API Key解析后,校验模型版本白名单失败。 |
|
401 |
ModelArts.81015 |
Invalid custom endpoint %s, rejected by api key custom endpoint allowlist setting. |
API Key解析后,校验自定义接入点白名单失败。 |
|
403 |
ModelArts.81004 |
Invalid request because you do not have access to it. |
检验订阅关系,用户未订阅。 |
|
403 |
ModelArts.81006 |
The resource is frozen. |
校验订阅关系,资源订阅状态是冻结。 |
|
403 |
ModelArts.81011 |
May contain sensitive..... |
输入或者非流式输出风控。 |
|
403 |
ModelArts.81013 |
Multi-language support is currently being upgraded, and related services are temporarily unavailable. We will complete the optimization as soon as possible. Thank you for your understanding and support. |
使用非中文请求,内容审核失败。 |
|
403 |
ModelArts.81017 |
The account is blocked for this model version |
domainId在模型版本黑名单。 |
|
403 |
ModelArts.81109 |
No permission query task %s. |
验证创建任务和当前查询的projectId不一致报错。 |
|
403 |
ModelArts.81112 |
The resource has remained in a frozen state beyond the retention period and has been permanently deleted. |
校验订阅关系,资源长时间处于冻结状态,超过保留期,已经被删除。 |
|
404 |
ModelArts.81009 |
Invalid model. |
Model不存在。 |
|
404 |
ModelArts.81010 |
No available backend service was found. |
过滤可用后端服务时,找不到可用的后端服务。 |
|
404 |
ModelArts.81012 |
No available backend service was found, because of api key label filter. |
API Key标签过滤后,无法找到可用后端服务。 |
|
404 |
ModelArts.81016 |
The model %s is not available with api url %s. |
Model和URL地址不匹配,例如deepseek-v3未提供Anthropic兼容,通过/anthropic地址无法调用deepseek-v3。 |
|
404 |
ModelArts.81108 |
Task %s does not exist. |
视频生成任务不存在。 |
|
413 |
ModelArts.81113 |
Invalid request body, exceeds the maximum size %s. |
请求体过大,超过服务端最大限制。 |
|
429 |
ModelArts.81101 |
Too many requests, the rate limit is %s times per second. |
请求量超过QPS限制。 |
|
429 |
ModelArts.81101 |
Too many requests, the rate limit is %s times per minute. |
请求量超过RPM限制。 |
|
429 |
ModelArts.81101 |
Too many requests, the rate limit is %s tokens per minute. |
请求量超过TPM限制。 |
|
500 |
ModelArts.81102 |
An unexpected exception occurred. Please try again. |
系统内部异常,正常用户不可见。 |
|
503 |
ModelArts.81104 |
Backend server error. |
跳转到下游推理服务连接超时错误等。 |
|
503 |
ModelArts.82005 |
No underloaded service for batch inference. |
批量推理请求无法调度,暂无闲时资源。 |
|
504 |
ModelArts.81110 |
Server process timeout. |
服务端响应超时。 |