Invalid authentication
See original GitHub issueHi, 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:
Tried to debug Dialogflow_V2.requestQuery call, but I’m always getting red screen before reaching breakpoint:
Not sure if this is really connected with your library, but guys, can you help me sort this out?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@akrupych-remit found another bug, now it definitely should work. Can you please test it again?
I had the same problem. For me, the solution was to add async / await before the request!