汇报指定的任务执行失败。
接口说明
接口说明
在旧版 Serverless 工作流中,使用该接口回调pattern: waitForCallback的任务步骤,表明当前任务执行失败。
在新版云工作流中,使用该接口回调TaskMode: WaitForCustomCallback的任务步骤,表明当前任务执行失败。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
fnf:ReportTaskFailed |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| TaskToken |
string |
是 |
汇报任务指定的令牌。TaskToken 会传递给被调用的服务,比如消息队列 MNS 或函数计算 FC。对于 MNS,用户可以从接收到的消息中获取,对于 FC,用户可以从 Event 中获取。 详情请参见服务集成模式。 |
djEjYSNkZTdkYWZjMi0zMGRlLTRlMDMtOTA2OC0yMTMxYmM5NGJlZTIjNSMvV1ZHYks3RTc0WUsra25nQTNYSmtFa0t6**** |
| Error |
string |
是 |
失败错误代码。长度为 1~128 个字符。 |
InvalidArgument |
| Cause |
string |
否 |
失败错误原因。长度为 1~4096 个字符。 |
emptyString |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回数据。 |
||
| EventId |
integer |
事件 ID。 |
1 |
| RequestId |
string |
请求 ID。 |
testRequestId |
示例
正常返回示例
JSON格式
{
"EventId": 1,
"RequestId": "testRequestId"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ActionNotSupported | The requested API operation '%s' is incorrect. Please check. | |
| 400 | APIVersionNotSupported | The requested API version '%s' is not supported yet. Please check. | |
| 400 | EntityTooLarge | The payload size exceeds maximum allowed size (%s bytes). | |
| 400 | InvalidArgument | Parameter error. | |
| 400 | MissingRequiredHeader | The HTTP header '%s' must be specified. | |
| 400 | MissingRequiredParams | The HTTP query '%s' must be specified. | |
| 400 | TaskAlreadyCompleted | Task %s has already completed. | |
| 500 | InternalServerError | An internal error has occurred. Please retry. | |
| 403 | AccessDenied | The resources doesn't belong to you. | |
| 403 | InvalidAccessKeyID | The AccessKey ID %s is invalid. | |
| 403 | RequestTimeTooSkewed | The difference between the request time %s and the current time %s is too large. | |
| 403 | SignatureNotMatch | The request signature we calculated does not match the signature you provided. Check your access key and signing method. | |
| 415 | UnsupportedMediaType | The content type must be "application/json". | |
| 429 | ResourceThrottled | The request is throttled. Please try again later. | |
| 409 | TaskInvalidState | Task is in an invalid state, please retry. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。