Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication: Unexpected token o in JSON at position 1 #82

Open
DavidKarasek opened this issue Apr 21, 2020 · 1 comment
Open

Authentication: Unexpected token o in JSON at position 1 #82

DavidKarasek opened this issue Apr 21, 2020 · 1 comment

Comments

@DavidKarasek
Copy link

DavidKarasek commented Apr 21, 2020

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,

@Pei116
Copy link

Pei116 commented May 8, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants