I’ve got context enabled in config.js. I use Firebase as db. Context works for Alexa, but when testing with Google Assistant I get error:
Message:
Argument "data" is not a valid Document. Cannot use "undefined" as a Firestore value (found in field userData.context.prev.`0`.request.inputs.checkInDate.value).
Stack:
Error: Argument "data" is not a valid Document. Cannot use "undefined" as a Firestore value (found in field userData.context.prev.`0`.request.inputs.checkInDate.value).
I’m guessing jovo is trying to store undefined, which is not allowed. Any idea how to solve this problem?
PS. I solved it temporarily by setting some properties to false:
user: {
context: {
enabled: true,
prev: {
size: 1,
request: {
intent: true,
state: false,
inputs: false,
timestamp: true,
},
response: {
speech: true,
reprompt: true,
state: true,
output: true,
},
},
},
},