v2.3.3 breaks as dependency of google-auth-library 1.6.1
See original GitHub issueEnvironment 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
- 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
- call auth.JWT.authorize(callback) in node app
- 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
@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 😃
@amrsh much appreciated, thanks a ton!