292 次查看 |

2023年5月22日 10:36

常见错误信息汇总

尽管我们已经尽可能收集到了 AIGCaaS 平台可能存在的问题,但是还会有一些模型本身的错误信息难以收集,我们会在未来,更新这部分错误信息在当前文档。以协助开发者可以更快速定位问题所在以及更方便解决问题。

如何区分这个请求是不是有错误?
为了让开发者更好区分请求是否出错以及可以明确本次请求是否计费,AIGCaaS 平台的 API 在调用之后,会在响应头中增加参数Aigcaas-Status,如果该参数取值为字符串格式的True,则表示当前请求是正常的,没有出现错误,此时会进行对应的扣费操作;如果取值为False,则表示当前请求非正常请求,已经出现错误,不会进行扣费操作(触发风控除外);

平台级错误信息汇总:

HTTP 状态码 错误码 错误信息
1 400 ParameterException Parameter exception, unable to complete the request
2 400 ParameterException Nonce parameter exception, max length is 64
3 400 ParameterException Duplicate request, nonce parameter exception
4 401 AuthorizationError Failed to obtain the requested key information
5 401 AuthorizationError The request cannot be completed due to abnormal user information or incorrect signature
6 401 AuthorizationError AccessKey has been disabled
7 412 AccountRestriction The user’s status is abnormal, and may have been blocked, unable to complete the request.
8 401 AccountRestriction The real name authentication status is abnormal. Please complete the authentication and continue the operation
9 401 SignatureError The timestamp is invalid. Please ensure that the interval between the signature timestamp and the request time is less than 10 seconds.
10 405 MethodError Method exception, unable to obtain API details
11 400 APIError API information exception, unable to obtain API details
12 412 InsufficientBalance Insufficient account balance, unable to complete subsequent operations
13 400 SystemError Data exception, unable to complete the request.
14 400 SystemError The request parameter is abnormal, unable to complete the request
15 412 SensitiveSuspended The system has detected sensitive information and suspended processing
16 400 ModelError API Server Error, the system failed to obtain a correct return of the model
17 400 ModelError Model execution exception, acquisition result error
18 400 ModelError Failed to obtain results from the model
19 400 IdentityError Identity verification error

除了上述错误信息,系统本身还有以下错误信息(额外增加):

Identity verification error

状态码:400

信息详情

{
    "error": "ParameterException",
    "message": "Incorrect timestamp format."",
    "help": "https://www.aigcaas.cn/article/38.html"
}

错误说明

该错误表示参数说错,主要是时间戳有问题,请检查在 Header 中传递的时间戳格式;

Permission exception, unable to obtain results

状态码:400

信息详情

{
    "error": "PermissionError",
  "message": "Permission exception, unable to obtain results.",
    "help": "https://www.aigcaas.cn/article/38.html"
}

错误说明

该错误表示权限错误,会在异步调用获取结果时出现,请检查所传递的RequestID 是否正确,且是自己当前账号所获取的任务ID;

There are currently no results, please try again later

状态码:202

信息详情

{
    "message": "There are currently no results, please try again later."",
    "help": "https://www.aigcaas.cn/article/38.html"
}

错误说明

该信息确切来说不是错误信息,只是提醒信息,告诉用户目前的异步任务还没完成,没有获得到结果信息;


温馨提示:
1. 本平台所提供 API 会产生相对应的金币消耗,这部分金币消耗是用于 API 调用时的 GPU 资源消耗,并非模型服务本身费用,模型均为开源模型,由第三方免费托管至本平台,如由第三方存在侵权行为等,请联系客服微信(B063-1206)进行处理;
2. 本平台在文章中可能会涉及到最佳实践,最佳案例以及相关带有"最"的描述,均指的是限定在本平台内,而非行业,不具有排他性;例如某文章如果说"这个实践操作可以算是最佳实践了"指的是仅限在当前平台内(AIGCaaS)中算是最佳实践,所以请各位在阅读时仔细辨别。另外,此处所说的"最佳"、"最"仅为举例,并不仅局限于这几个词,而是所有的类似词汇。