Giter Club home page Giter Club logo

Comments (5)

coryan avatar coryan commented on July 21, 2024

Looks like you do not have your credentials configured:

https://cloud.google.com/docs/authentication/getting-started

Did you try using gcloud first to verify the authentication works?

https://cloud.google.com/speech-to-text/docs/quickstart-gcloud

from cpp-samples.

Rohan0993 avatar Rohan0993 commented on July 21, 2024

Hi @coryan I have followed the above links. I have a service account with owner role. and I have set up the gcloud.

I can access the gcloud commands from the google-cloud-sdk directory.

But I am not sure why do I need this. It did not make any visual difference in the behaviour of my question. Did I do it right?

screenshot_20190206_112827

from cpp-samples.

coryan avatar coryan commented on July 21, 2024

The error message is what you get from gRPC when the credentials are not setup, it is very hidden, but it says:

{"created":"@1549373148.360135072","description":
"Failed to load file",

"file":"src/core/lib/iomgr/load_file.cc","file_line":71,

"filename":"/root/.config/gcloud/application_default_credentials.json",

That is, gRPC tried to open /root/.config/gcloud/application_default_credentials.json and failed, and that file is where the application default credentials are usually stored for root.

And only after writing that I noticed that you are doing a sudo make. I suspect your account has credentials, but root does not (and probably should not). You probably want to run make tests without the sudo.

from cpp-samples.

Rohan0993 avatar Rohan0993 commented on July 21, 2024

Ohh genius ! Yay that worked :)

from cpp-samples.

coryan avatar coryan commented on July 21, 2024

Glad to hear that, closing this bug.

from cpp-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.