node.js SDK を使用して Google Home アクションを作成します。最初のバージョンは正常に動作しますが、同じコードで新しい Google プロジェクトを取得するだけです
actions-on-google:debug handleError_: text=Invalid dialog state
このコードから出てくる:
let inputPrompt = assistant.buildInputPrompt(true, speechOutput,[repromptNoMatch],[repromptNoResponse]);
assistant.ask(inputPrompt, [{'intent': RAW_INTENT}]);
まったく同じコードが別の Google プロジェクトで機能します。
作業中のプロジェクトでは、デバッグ出力は次のようになります。
debug ask: inputPrompt=[object Object], dialogState=undefined
動作していないプロジェクトでは、次のようになります。
debug ask: inputPrompt=[object Object], dialogState=[object Object]
オブジェクトは空のオブジェクトですが!
再デプロイしても問題は解決しません。これには驚かされます。
ダイアログの状態を「リセット」する方法もないようです!