我有一個(gè) repo https://github.com/BuilderHarrison/temporal-hello-world-dsl,當(dāng)我運(yùn)行它時(shí),它有 50% 的時(shí)間失敗,50% 的時(shí)間成功。我對(duì)臨時(shí) SDK 和無(wú)服務(wù)器 SDK 都很陌生。所以我無(wú)法完全弄清楚如何繼續(xù)調(diào)試問題。我得到的問題是:{ "type": "workflowExecutionFailedEventAttributes", "failure": { "message": "unable to decode the workflow function input payload with error: payload item 0: unable to decode: json: cannot unmarshal object into Go struct field Workflow.Start of type string, function name: HelloWorld", "source": "GoSDK", "stackTrace": "", "cause": { "message": "payload item 0: unable to decode: json: cannot unmarshal object into Go struct field Workflow.Start of type string", "source": "GoSDK", "stackTrace": "", "cause": { "message": "unable to decode: json: cannot unmarshal object into Go struct field Workflow.Start of type string", "source": "GoSDK", "stackTrace": "", "cause": { "message": "unable to decode", "source": "GoSDK", "stackTrace": "", "cause": null, "applicationFailureInfo": { "type": "", "nonRetryable": false, "details": null } }, "applicationFailureInfo": { "type": "wrapError", "nonRetryable": false, "details": null } }, "applicationFailureInfo": { "type": "wrapError", "nonRetryable": false, "details": null } }, "applicationFailureInfo": { "type": "wrapError", "nonRetryable": false, "details": null } }, "retryState": "RetryPolicyNotSet", "workflowTaskCompletedEventId": "7", "newExecutionRunId": ""}
使用無(wú)服務(wù)器工作流 go sdk 時(shí)出現(xiàn)間歇性 JSON 解組錯(cuò)誤
慕標(biāo)琳琳
2023-01-03 17:22:42