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.

Authentication V2: "status": "UNAUTHENTICATED"

See original GitHub issue

Unable to get access

 constructor(props) {
        super(props);

        Dialogflow_V2.setConfiguration(
            "your-dialogflow-project@asdf-76866.iam.gserviceaccount.com",
            '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADAN...1oqO\n-----END PRIVATE KEY-----\n',
            Dialogflow_V2.LANG_ENGLISH_US,
            'testv2-3b5ca'
        );
    }

componentDidMount(){
  Dialogflow_V2.requestQuery("Some text for your Dialogflow agent", result=>console.log(result), error=>console.log(error));
}

error recieved: {“error”: {“code”: 401, “message”: “Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.”, “status”: “UNAUTHENTICATED”}}

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

1reaction
lewismclennancommented, Jul 24, 2020

I’ve tried generating new service accounts and making sure the API is enabled on the project. Any idea what could be causing this?

0reactions
shakshakeebcommented, Dec 30, 2022

Hello, has anyone figured this out? I’m facing the same problem and have been stuck on this for weeks

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP Status Codes 401 Unauthorized and 403 Forbidden for ...
The unauthenticated client is not allowed access the resource; authentication will not help (HTTP 403). The client's authentication credentials ...
Read more >
Forbidden (403), Unauthorized (401), or What Else? - Auth0
401 Unauthorized is the status code to return when the client provides no credentials or invalid credentials.
Read more >
android - I get UNAUTHENTICATED error when I call Method
Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.
Read more >
All computers get: ddt.edu 2 (Unauthenticated) after ... - TechNet
Problem: When you click on the network status icon in the notification area on the taskbar it says: "ddt.edu 2 (Unauthenticated)" and ...
Read more >
UNAUTHENTICATED · Issue #766 · googleapis/google-cloud ...
"message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication ...
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