GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Unhelpful error message · Issue #325 · googleapis/google-cloud-node

Unhelpful error message #325

New issue
Copy link
New issue
Copy link
Closed
#331
Closed
Unhelpful error message#325
#331
Copy link
Assignees
yoshi-automation
Labels
🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone
Core Stable

Description

@jgeewax
jgeewax
opened on Dec 6, 2014
Issue body actions

I'm using gcloud-node and yesterday my code worked, today it doesn't work anymore. The problem is that the only error message I am getting is the following:
{ [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }

It turns out that this was caused by me (I've moved the initialization with project id and key file name to a place where it apparently has no effect).

What did you expect to happen?
Better error message! Which address are you trying to resolve? Any likely causes that you can think of?

Activity

Next
  1. jgeewax
    added
    enhancement
    on Dec 6, 2014
  2. jgeewax commented on Dec 6, 2014

    @jgeewax
    jgeewax
    on Dec 6, 2014
    ContributorAuthor
    More actions

    (copied and pasted from someone else, I'll be asking the reporter to come add more detail here)

  3. stephenplusplus commented on Dec 15, 2014

    @stephenplusplus
    stephenplusplus
    on Dec 15, 2014
    Contributor
    More actions

    I ran into this while testing out GAE dev + gcloud for #328. This error comes from https://github.com/stephenplusplus/google-service-account/blob/v1.0.3/connection.js#L80:

    if (/*G[AC]E*/!this.keyFile && !this.credentials)
      return request({
        method: "get",
        uri: METADATA_TOKEN_URL,
        headers: {
          "Metadata-Flavor": "Google"
        },
        json: true
      }, function (err, res, body) {
        if (err || !body.access_token) return callback(err)
    
        var exp = new Date(Date.now() + body.expires_in * 1000)
        callback(null, new Token(body.access_token, exp))
      })

    In gcloud, we didn't get a keyFilename or credentials object from the user, so we passed undefined values for them to google-service-account (GSA). To GSA, that's interpreted as "we're on GCE, where a user doesn't have to provide that information," so it pings the metadata server to get a token. When it gets an error that that endpoint doesn't exist, it just sends the error back to gcloud, which is then handed back to the user.

    Long story short: #331 is a new PR that will listen specifically for that error and throw a more helpful error.

  4. silvolu
    closed this as completedin #331on Dec 15, 2014
  5. jgeewax
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    and removed
    enhancement
    on Feb 2, 2015
  6. jgeewax
    added this to the Core Stable milestone on Feb 2, 2015
  7. jgeewax
    added
    auth
    on Feb 2, 2015
  8. yoshi-automation
    added
    🚨This issue needs some love.
    triage meI really want to be triaged.
    on Apr 7, 2020
  9. JustinBeckwith
    assigned
    yoshi-automation
    on Feb 1, 2021
  10. chingor13
    added a commit that references this issue on Aug 22, 2022

    fix(deps): update dependency uuid to v8 (#325)

    2f584bf
  11. sofisl
    added 3 commits that reference this issue on Oct 12, 2022

    docs: mention templates in contributing section of README (#325)

    0e856a1

    chore: release 1.2.1 (#325)

    f1e1854

    docs: mention templates in contributing section of README (#325)

    b2aa683
  12. 31 remaining items

  13. sofisl
    added a commit that references this issue on Feb 24, 2026

    fix(deps): update dependency google-gax to ^0.19.0 (#325)

    2696883
  14. GautamSharda
    added 2 commits that reference this issue on Feb 25, 2026

    docs: changing format of the jsdoc links (#325)

    289ddd7

    Release v0.6.1 (#325)

    436b14c
  15. sofisl
    added 2 commits that reference this issue on Mar 5, 2026

    build: update to the latest build config (#325)

    8f577f0

    chore(deps): update dependency c8 to v9 (#325)

    59d2bd6
  16. codyoss
    added 2 commits that reference this issue on Mar 9, 2026

    build!: update library to use Node 12 (#325)

    dad6c04

    build!: update library to use Node 12 (#325)

    c27637a
  17. GautamSharda
    added 4 commits that reference this issue on Mar 11, 2026

    chore: drop contributors from multiple places (#325)

    4ac5bfd

    chore!: upgrade to Node 14 (#325)

    df3a69f

    chore!: upgrade to Node 14 (#325)

    aaa4636

    build: add Kokoro configs for autorelease (#325)

    23ce7c2
  18. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    Fix some issues in the contributing instructions. (#325)

    a35b3ae

    Fix some issues in the contributing instructions. (#325)

    da3b609
  19. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    Fix some issues in the contributing instructions. (#325)

    ca4f47a
  20. thiyaguk09
    added a commit that references this issue on May 5, 2026

    Fix some issues in the contributing instructions. (googleapis#325)

    d11b4e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @yoshi-automation
    yoshi-automation

Labels

🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    • Core Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.