question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid authentication

See original GitHub issue

Hi, I’m trying to query my Dialogflow model using Dialogflow_V2:

  constructor(props) {
    super(props);
    Dialogflow_V2.setConfiguration(
      "***@***.iam.gserviceaccount.com",
      "-----BEGIN PRIVATE KEY-----***\n-----END PRIVATE KEY-----\n",
      Dialogflow_V2.LANG_EN,
      "***"
    );
  }

  requestQuery = () => {
    Dialogflow_V2.requestQuery(
      "Hello",
      result => this.setState({
        result: JSON.stringify(result)
      }),
      error => this.setState({
        error: JSON.stringify(error)
      })
    );
  }

  render() {
    return (
      <View style={styles.container}>
        <Button title="Hello" onPress={this.requestQuery}/>
        <Text>Result: {this.state.result}</Text>
        <Text>Error: {this.state.error}</Text>
        <Text>Access Token: {Dialogflow_V2.accessToken}</Text>
      </View>
    );
  }

And I get 401 error code and seems accessToken is undefined: image

Tried to debug Dialogflow_V2.requestQuery call, but I’m always getting red screen before reaching breakpoint: image

Not sure if this is really connected with your library, but guys, can you help me sort this out?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
spoeckcommented, Jun 20, 2018

@akrupych-remit found another bug, now it definitely should work. Can you please test it again?

0reactions
Baksha2008commented, Jun 3, 2019

I had the same problem. For me, the solution was to add async / await before the request!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: User authentication failed due to invalid authenti...
When I'm going to transaction it shows the error "Response Text: User authentication failed due to invalid authentication values." What is this issue....
Read more >
Authorize.Net Error: User authentication failed due to invalid ...
This error message pops up when the Authorize.Net Login ID and Transaction Key you have configured with Chargebee are no longer valid.
Read more >
Troubleshooting message "You have entered invalid ...
In any of this case, you will get one the error "You have entered invalid authentication credentials" when logging.
Read more >
User authentication failed due to invalid authentication value
User authentication failed due to invalid authentication value. Please make that you input the correct Authorize.net API Login ID and Transaction Key in ......
Read more >
invalid-authentication-entry-timeout (Services User ...
An invalid authentication entry is created with a NULL and INVALID state for a user's IP address and stored in the access directory...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found