react-native-dialogflow icon indicating copy to clipboard operation
react-native-dialogflow copied to clipboard

Dialogflow_V2.resetContexts not working

Open OscarSaro opened this issue 4 years ago • 2 comments

Hi,

I would like to use the resetContext method, but it always throws this error Possible Unhandled Promise Rejection (id: 0): TypeError: undefined is not an object (evaluating 'this.client.getAccessToken'). I'm using the V2. My goal is to use Dialogflow_V2.resetContexts when the intent is settled as end of conversation. All the other methods I’m using work fine.

Is this method only available for V1? Or there is something wrong with my code?

OscarSaro avatar Sep 16 '19 12:09 OscarSaro

I am having the same issue. Happy to share code if necessary!

cadenmackenzie avatar Sep 16 '19 21:09 cadenmackenzie

Me too. See https://github.com/innFactory/react-native-dialogflow/pull/86 for a fix

martinlockett avatar Jul 08 '20 19:07 martinlockett