我有一個 repo https://github.com/BuilderHarrison/temporal-hello-world-dsl,當我運行它時,它有 50% 的時間失敗,50% 的時間成功。我對臨時 SDK 和無服務器 SDK 都很陌生。所以我無法完全弄清楚如何繼續調試問題。我得到的問題是:{ "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": ""}
1 回答

茅侃侃
TA貢獻1842條經驗 獲得超21個贊
50% 的時間錯誤通常是由于存在兩個工作進程,其中一個在較舊/不兼容的代碼版本上。您是否有可能在不同的 shell 或后臺有一個舊的 Worker 進程?
- 1 回答
- 0 關注
- 134 瀏覽
添加回答
舉報
0/150
提交
取消