Giter Club home page Giter Club logo

Comments (5)

danielbankhead avatar danielbankhead commented on June 9, 2024

@Jared00m which version of Node are you running?

from google-auth-library-nodejs.

Jared00m avatar Jared00m commented on June 9, 2024

@danielbankhead , thanks for asking. I've tried it on Node 18, 16, 15, 14, and 12.

On node 15 I get a useful error that says:


data: {
      error: {
        code: 403,
        message: 'Forbidden',
        errors: [
          {
            message: 'Forbidden',
            domain: 'global',
            reason: 'forbidden'
          }
        ]
      }
    },

On Node 18 I get this error:


config: {
    method: 'POST',
    url: 'https://www.googleapis.com/oauth2/v4/token',
    data: {
      grant_type: '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.',
      assertion: '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.'
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'User-Agent': 'google-api-nodejs-client/9.2.0',
      'x-goog-api-client': 'gl-node/18.3.0',
      Accept: 'application/json'
    },
    responseType: 'json',
    paramsSerializer: [Function: paramsSerializer],
    body: '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.',
    validateStatus: [Function: validateStatus],
    errorRedactor: [Function: defaultErrorRedactor]
  },
  response: undefined,
  error: FetchError: Invalid response body while trying to fetch https://www.googleapis.com/oauth2/v4/token: read ECONNRESET
      at Gunzip.<anonymous> (/Users/jared/Coding/language-app-test/language-app/functions/node_modules/node-fetch/lib/index.js:400:12)
      at Gunzip.emit (node:events:539:35)
      at emitErrorNT (node:internal/streams/destroy:151:8)
      at emitErrorCloseNT (node:internal/streams/destroy:116:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    type: 'system',
    errno: 'ECONNRESET',
    code: 'ECONNRESET'
  },
  code: 'ECONNRESET'
}

from google-auth-library-nodejs.

danielbankhead avatar danielbankhead commented on June 9, 2024

Investigating. Potentially related items:

from google-auth-library-nodejs.

danielbankhead avatar danielbankhead commented on June 9, 2024

After discussing with the team, this is best handled by setting up automatic retries in this library.

I'll prioritize this work and it can be tracked here:

from google-auth-library-nodejs.

danielbankhead avatar danielbankhead commented on June 9, 2024

This PR should provide some relief for the immediate issue:

from google-auth-library-nodejs.

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.