react-native-dialogflow
react-native-dialogflow copied to clipboard
Authentication: Unexpected token o in JSON at position 1
I suddenly started getting this error when initializing dialogflow,
react-native-dialogflow: Authentication Error: SyntaxError: Unexpected token o in JSON at position 1
Nothing has changed in the past 2 weeks with my implementation so I am not sure why I would suddenly get an error like this. I have tried blowing away node modules and reinstalling but it made no difference.
I am using V2, here is how I config:
Dialogflow_V2.setConfiguration(
config.client_email,
config.private_key,
Dialogflow_V2.LANG_ENGLISH_US,
config.project_id
)
I have doubled checked the data is correct before calling setConfiguration and it is fine,
I'm facing the same error even though all the configurations are set. @DavidKarasek were you able to fix it?