亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

使用無服務器工作流 go sdk 時出現間歇性 JSON 解組錯誤

使用無服務器工作流 go sdk 時出現間歇性 JSON 解組錯誤

Go
慕標琳琳 2023-01-03 17:22:42
我有一個 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 進程?



查看完整回答
反對 回復 2023-01-03
  • 1 回答
  • 0 關注
  • 134 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號