Ошибка:
TypeError: Невозможно прочитать свойство 'input' из неопределенного '
Я устанавливаю контекст следующим образом:
conv.contexts.set('pgnotes',1000,
{ 'pg':pgContext.pg,
'notes':response,
'lastReferencedPage':-1
}
);
Я успешно установил контексты, используя тот же общий код в других областях. Я не уверен, почему здесь ошибка.
Я отправил вопрос действиям в службу поддержки Google, но не ожидаю, что они ответят. Надеясь, что кто-то здесь может предложить идею!
Какой-то окружающий код
APIGetNotes(pgContext.pg, uniqname).then(
response=>{
console.log("conv.contexts %O", conv.contexts);
console.log("pgContext.pg: "+pgContext.pg);
console.log("notes: %O",response);
console.log("About to set context");
conv.contexts.set('pgnotes',1000,
{ 'pg':pgContext.pg,
'notes':response,
'lastReferencedPage':-1
}
);
respondBrowseNote(conv);
}
).catch(
error=>{
console.log("ERROR getting notes for pg '"+pgContext.pg+"' Error:'"+error+"'");
conv.ask("There was an error getting notes, try again later");
}
)