Skip to content

Code breaking while authenticating #373

@VikramTiwari

Description

@VikramTiwari

I am connecting to big query using JWT client. My application is high scale and makes this connection every time it wants to stream data into big query.

Any possible fix to this?

Raw error log;

crypto.js:398
  var ret = this._binding.sign(toBuf(key));
                          ^
TypeError: Not a buffer
    at Sign.sign (crypto.js:398:27)
    at createRS256Signature (/home/ubuntu/vikram/test/shock/node_modules/googleapis/node_modules/gapitoken/node_modules/jws/index.js:75:58)
    at jwsRS256Sign (/home/ubuntu/vikram/test/shock/node_modules/googleapis/node_modules/gapitoken/node_modules/jws/index.js:68:21)
    at Object.jwsSign [as sign] (/home/ubuntu/vikram/test/shock/node_modules/googleapis/node_modules/gapitoken/node_modules/jws/index.js:32:12)
    at GAPI.getAccessToken (/home/ubuntu/vikram/test/shock/node_modules/googleapis/node_modules/gapitoken/gapitoken.js:56:25)
    at GAPI.getToken (/home/ubuntu/vikram/test/shock/node_modules/googleapis/node_modules/gapitoken/gapitoken.js:35:14)
    at JWT.refreshToken_ (/home/ubuntu/vikram/test/shock/node_modules/googleapis/lib/auth/jwtclient.js:89:13)
    at /home/ubuntu/vikram/test/shock/node_modules/googleapis/lib/auth/jwtclient.js:68:12
    at /home/ubuntu/vikram/test/shock/node_modules/googleapis/node_modules/gapitoken/gapitoken.js:20:17
    at fs.js:266:14

Metadata

Metadata

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions