Skip to content

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

@DavidKarasek

Description

@DavidKarasek

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions