彙報指定的任務執行失敗。
介面說明
介面說明
在舊版 Serverless 工作流程中,使用該介面回調pattern: waitForCallback的任務步驟,表明當前任務執行失敗。
在新版雲工作流程中,使用該介面回調TaskMode: WaitForCustomCallback的任務步驟,表明當前任務執行失敗。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
fnf:ReportTaskFailed |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| TaskToken |
string |
是 |
彙報任務指定的令牌。TaskToken 會傳遞給被調用的服務,比如訊息佇列 MNS 或Function Compute 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。