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

Authentication: Unexpected token o in JSON at position 1

Open DavidKarasek opened this issue 4 years ago • 1 comments

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,

DavidKarasek avatar Apr 21 '20 14:04 DavidKarasek

I'm facing the same error even though all the configurations are set. @DavidKarasek were you able to fix it?

Pei116 avatar May 08 '20 19:05 Pei116