actions-on-google/dialogflow-updates-nodejs

crashes after entering category for daily updates

Closed this issue · 4 comments

After I get my first tip, I select "Send Daily." It then asks for the category, to which I reply "random." It then crashes. Error log below:

2018-03-16T16:33:45.162Z I aogTips: Fri, 16 Mar 2018 16:33:45 GMT actions-on-google:debug getArgument: argName=category
2018-03-16T16:33:45.162Z I aogTips: Fri, 16 Mar 2018 16:33:45 GMT actions-on-google:debug askToRegisterDailyUpdate: intent=tell_tip, intentArguments=[object Object], dialogState=undefined
2018-03-16T16:33:45.162Z I aogTips: Fri, 16 Mar 2018 16:33:45 GMT actions-on-google:debug fulfillSystemIntent_: intent=actions.intent.REGISTER_UPDATE, specType=type.googleapis.com/google.actions.v2.RegisterUpdateValueSpec, intentSpec={"intent":"tell_tip","triggerContext":{"timeContext":{"frequency":"DAILY"}},"arguments":[{"name":"category","textValue":"random"}]}, promptPlaceholder=PLACEHOLDER_FOR_REGISTER_UPDATE dialogState=undefined
2018-03-16T16:33:45.162Z I aogTips: Fri, 16 Mar 2018 16:33:45 GMT actions-on-google:debug buildResponse_: textToSpeech=PLACEHOLDER_FOR_REGISTER_UPDATE, expectUserResponse=true, noInputs=undefined
2018-03-16T16:33:45.162Z I aogTips: Fri, 16 Mar 2018 16:33:45 GMT actions-on-google:debug isSsml_: text=PLACEHOLDER_FOR_REGISTER_UPDATE
2018-03-16T16:33:45.162Z I aogTips: Fri, 16 Mar 2018 16:33:45 GMT actions-on-google:debug getUser
2018-03-16T16:33:45.162Z I aogTips: Fri, 16 Mar 2018 16:33:45 GMT actions-on-google:debug isNotApiVersionOne_
2018-03-16T16:33:45.162Z I aogTips: Fri, 16 Mar 2018 16:33:45 GMT actions-on-google:debug Response {"speech":"PLACEHOLDER_FOR_REGISTER_UPDATE","contextOut":[{"name":"actions_on_google","lifespan":100,"parameters":{"category.original":"random","category":"random"}}],"data":{"google":{"expectUserResponse":true,"noInputPrompts":[],"isSsml":false,"systemIntent":{"intent":"actions.intent.REGISTER_UPDATE","data":{"@type":"type.googleapis.com/google.actions.v2.RegisterUpdateValueSpec","intent":"tell_tip","triggerContext":{"timeContext":{"frequency":"DAILY"}},"arguments":[{"name":"category","textValue":"random"}]}}}}}
2018-03-16T16:33:45.164Z I aogTips: Fri, 16 Mar 2018 16:33:45 GMT actions-on-google:debug undefined
2018-03-16T16:33:45.164172343Z D aogTips: Function execution took 48 ms, finished with status code: 200

Same

In order for updates and push notifications to properly work, you will need to enable them via the Actions on Google console.

I have updated the README to include this step.

More specifically:
Follow the Console Setup instructions in the Daily Updates and the Push Notifications documentation to enable daily updates and push notifications.

Are you still running into this issue after following the steps outlined above?