GithubHelp home page GithubHelp logo

Comments (13)

randolfo75 avatar randolfo75 commented on July 18, 2024 4

I solved the same problem here running: gcloud auth application-default login. I hope helps somebody.

from google-auth-library-java.

ajkannan avatar ajkannan commented on July 18, 2024

Turns out this was a mistake on my part. In our maven project, we took a dependency on the oauth2_http and credentials modules, but not the appengine module.

from google-auth-library-java.

anthmgoogle avatar anthmgoogle commented on July 18, 2024

OK. It may be worth creating a new issue along the lines of improving the error message in this case.

from google-auth-library-java.

aozarov avatar aozarov commented on July 18, 2024

@anthmgoogle is there a way to avoid pulling appengine-api-1.0-sdk (17Mb jar) when not necessary.

Few options:

  • Use "provided" or a like as a maven dependency
  • Use reflection to invoke methods on AppIdentityService

gcloud-java used to do the latter.

from google-auth-library-java.

Raviraj20 avatar Raviraj20 commented on July 18, 2024

Getting an similar error when using an .Net
Can someone help how to solve this error

Message":"An error has occurred.","ExceptionMessage":"The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.","ExceptionType":"System.InvalidOperationException","StackTrace":" at Google.Api.Gax.TaskExtensions.WaitWithUnwrappedExceptions(Task task)\r\n at Google.Api.Gax.Grpc.ChannelPool.GetChannel(ServiceEndpoint

from google-auth-library-java.

ajkannan avatar ajkannan commented on July 18, 2024

/cc @garrettjonesgoogle

from google-auth-library-java.

garrettjonesgoogle avatar garrettjonesgoogle commented on July 18, 2024

@Raviraj20 you code looks like C# - did you want https://github.com/googleapis/gax-dotnet ?

from google-auth-library-java.

Raviraj20 avatar Raviraj20 commented on July 18, 2024

@garrettjonesgoogle
ya but that to not working showing an similar error
"ExceptionMessage":"The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable

we cant put the credential file in root folder
*.json

from google-auth-library-java.

Raviraj20 avatar Raviraj20 commented on July 18, 2024

@garrettjonesgoogle
thanks for replying
this https://github.com/googleapis/gax-dotnet this project is not geting open
in vs 2015

geting this error
image

from google-auth-library-java.

Raviraj20 avatar Raviraj20 commented on July 18, 2024

@garrettjonesgoogle
thanks for replying
this https://github.com/googleapis/gax-dotnet this project is not geting open
its showing a error
this https://github.com/googleapis/gax-dotnet this project is not geting open
image

from google-auth-library-java.

garrettjonesgoogle avatar garrettjonesgoogle commented on July 18, 2024

@Raviraj20 , what I meant was that you should file an issue using https://github.com/googleapis/gax-dotnet/issues/new to have the owners of gax-dotnet look at it for you. I can't help you here because this repository is for Java issues.

from google-auth-library-java.

Raviraj20 avatar Raviraj20 commented on July 18, 2024

@garrettjonesgoogle
ok thanks

from google-auth-library-java.

chingor13 avatar chingor13 commented on July 18, 2024

The original issue appears to be resolved and it's unclear why it was reopened. Closing this out, but feel free to re-open if this is not the case.

from google-auth-library-java.

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.