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.

v2.3.3 breaks as dependency of google-auth-library 1.6.1

See original GitHub issue

Environment details

  • OS: Google App Engine Flex (Debian 4.9.144-3.1)
  • Node.js version: 6.11.1
  • npm version: 3.10.10
  • gtoken version: 2.3.3

Steps to reproduce

  1. npm install node app using google-auth-library 1.6.1, which has dependency “gtoken”: “^2.3.0”, which since March 13 2019 pulls in v2.3.3
  2. call auth.JWT.authorize(callback) in node app
  3. receive below error, resolvable by manually requiring gtoken 2.3.0

TypeError: URL is not a constructor, at Gaxios.validateOpts (/app/node_modules/gaxios/build/src/gaxios.js:126:27), at Gaxios.<anonymous (/app/node_modules/gaxios/build/src/gaxios.js:61:25), at next (native), at /app/node_modules/gaxios/build/src/gaxios.js:19:71, at __awaiter (/app/node_modules/gaxios/build/src/gaxios.js:15:12), at Gaxios.request (/app/node_modules/gaxios/build/src/gaxios.js:60:16), at Object.<anonymous> (/app/node_modules/gaxios/build/src/index.js:38:33), at next (native), at /app/node_modules/gaxios/build/src/index.js:19:71, at __awaiter (/app/node_modules/gaxios/build/src/index.js:15:12), at Object.request (/app/node_modules/gaxios/build/src/index.js:37:12), at GoogleToken.<anonymous> (/app/node_modules/gtoken/build/src/index.js:191:29), at next (native), at /app/node_modules/gtoken/build/src/index.js:13:71, at __awaiter (/app/node_modules/gtoken/build/src/index.js:9:12), at GoogleToken.requestToken (/app/node_modules/gtoken/build/src/index.js:179:16)], message=URL is not a constructor

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
amrshcommented, May 6, 2019

@callmehiphop much appreciated. Mostly wanted to post this issue to have Google index so others facing the same error might avoid the many hours it took for me to isolate to this lib 😃

0reactions
callmehiphopcommented, May 6, 2019

@amrsh much appreciated, thanks a ton!

Read more comments on GitHub >

github_iconTop Results From Across the Web

google-auth-library - npm
This is Google's officially supported node.js client library for using OAuth 2.0 authorization and authentication with Google APIs. Installation.
Read more >
Java client library | Google Cloud
Features · Dependencies · Documentation.
Read more >
Authentication error after upgrading to 0.23.1 #2453 - GitHub
From running gradle dependencies it looks like the force is working though. force 'com.google.auth:google-auth-library-oauth2-http:0.7.1' force ...
Read more >
Changelog - google-gax documentation
BREAKING CHANGES. remove pageSize/pageToken from call settings (#1263); drop Node 10 to support and update lastest Typescript (#1252); reduce module size by ...
Read more >
google-auth-library has missing dependencies when installed
Steps to reproduce: Install Node 16.13.2; Create a react app npx create-react-app minimal-example; Enter directory for the created project ...
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