rhymbit
rhymbit
DDeno
Created by rhymbit on 7/31/2024 in #help
Google Cloud Storage library error inside docker, but outside on my pc it's working fine.
An Update :- - I was using podman instead of docker, and it wasn't working inside podman. - I installed docker again and tried with docker, and it works fine. I think there was some problem with podman's network configs or something that wasn't allowing that google library to connect to https://googleapis.com/v4 (something like this url) to verify token and stuff. For now, I don't have patience to figure out a way to make it work in podman 😓 , so I'll just take docker. PS: Also deployed this container image (using podman itself) to google cloud run and it works fine over there as well. ✌️
6 replies
DDeno
Created by rhymbit on 7/31/2024 in #help
Google Cloud Storage library error inside docker, but outside on my pc it's working fine.
(file:///app/.deno_cache/npm/registry.npmjs.org/@google-cloud/storage/7.11.2/build/esm/src/nodejs-common/util.js:463:61) {
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.11.0",
"x-goog-api-client": "gl-node/20.11.1",
Accept: "application/json"
},
responseType: "json",
retryConfig: {
httpMethodsToRetry: [ "POST" ],
currentRetryAttempt: 2,
retry: 3,
noResponseRetries: 2,
statusCodesToRetry: [ [ 100, 199 ], [ 408, 408 ], [ 429, 429 ], [ 500, 599 ] ]
},
paramsSerializer: [Function: paramsSerializer],
body: "<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.",
validateStatus: [Function: validateStatus],
errorRedactor: [Function: defaultErrorRedactor]
},
response: undefined,
error: FetchError: request to https://www.googleapis.com/oauth2/v4/token failed, reason: client error (Connect)
at HttpsClientRequest.<anonymous> (file:///app/.deno_cache/npm/registry.npmjs.org/node-fetch/2.7.0/lib/index.js:1501:11)
at HttpsClientRequest.emit (ext:deno_node/_stream.mjs:1851:9)
at node:http:495:16
at eventLoopTick (ext:core/01_core.js:168:7) {
message: "request to https://www.googleapis.com/oauth2/v4/token failed, reason: client error (Connect)",
type: "system",
errno: undefined,
code: undefined
},
[Symbol("gaxios-gaxios-error")]: "6.6.0"
}
(file:///app/.deno_cache/npm/registry.npmjs.org/@google-cloud/storage/7.11.2/build/esm/src/nodejs-common/util.js:463:61) {
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.11.0",
"x-goog-api-client": "gl-node/20.11.1",
Accept: "application/json"
},
responseType: "json",
retryConfig: {
httpMethodsToRetry: [ "POST" ],
currentRetryAttempt: 2,
retry: 3,
noResponseRetries: 2,
statusCodesToRetry: [ [ 100, 199 ], [ 408, 408 ], [ 429, 429 ], [ 500, 599 ] ]
},
paramsSerializer: [Function: paramsSerializer],
body: "<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.",
validateStatus: [Function: validateStatus],
errorRedactor: [Function: defaultErrorRedactor]
},
response: undefined,
error: FetchError: request to https://www.googleapis.com/oauth2/v4/token failed, reason: client error (Connect)
at HttpsClientRequest.<anonymous> (file:///app/.deno_cache/npm/registry.npmjs.org/node-fetch/2.7.0/lib/index.js:1501:11)
at HttpsClientRequest.emit (ext:deno_node/_stream.mjs:1851:9)
at node:http:495:16
at eventLoopTick (ext:core/01_core.js:168:7) {
message: "request to https://www.googleapis.com/oauth2/v4/token failed, reason: client error (Connect)",
type: "system",
errno: undefined,
code: undefined
},
[Symbol("gaxios-gaxios-error")]: "6.6.0"
}
6 replies
DDeno
Created by rhymbit on 7/31/2024 in #help
Google Cloud Storage library error inside docker, but outside on my pc it's working fine.
And here's the error :- can't paste it all in one go without discord nitro 🙏
Error: request to https://www.googleapis.com/oauth2/v4/token failed, reason: client error (Connect)
at Gaxios._request (file:///app/.deno_cache/npm/registry.npmjs.org/gaxios/6.6.0/build/src/gaxios.js:149:19)
at eventLoopTick (ext:core/01_core.js:168:7)
at async GoogleToken._GoogleToken_requestToken (file:///app/.deno_cache/npm/registry.npmjs.org/gtoken/7.1.0/build/src/index.js:241:19)
at async GoogleToken._GoogleToken_getTokenAsync (file:///app/.deno_cache/npm/registry.npmjs.org/gtoken/7.1.0/build/src/index.js:160:16)
at async JWT.refreshTokenNoCache (file:///app/.deno_cache/npm/registry.npmjs.org/google-auth-library/9.11.0/build/src/auth/jwtclient.js:173:23)
at async JWT.getRequestMetadataAsync (file:///app/.deno_cache/npm/registry.npmjs.org/google-auth-library/9.11.0/build/src/auth/oauth2client.js:333:17)
at async JWT.getRequestHeaders (file:///app/.deno_cache/npm/registry.npmjs.org/google-auth-library/9.11.0/build/src/auth/oauth2client.js:296:26)
at async GoogleAuth.authorizeRequest (file:///app/.deno_cache/npm/registry.npmjs.org/google-auth-library/9.11.0/build/src/auth/googleauth.js:737:25)
at async Promise.all (index 1)
at async prepareRequest
Error: request to https://www.googleapis.com/oauth2/v4/token failed, reason: client error (Connect)
at Gaxios._request (file:///app/.deno_cache/npm/registry.npmjs.org/gaxios/6.6.0/build/src/gaxios.js:149:19)
at eventLoopTick (ext:core/01_core.js:168:7)
at async GoogleToken._GoogleToken_requestToken (file:///app/.deno_cache/npm/registry.npmjs.org/gtoken/7.1.0/build/src/index.js:241:19)
at async GoogleToken._GoogleToken_getTokenAsync (file:///app/.deno_cache/npm/registry.npmjs.org/gtoken/7.1.0/build/src/index.js:160:16)
at async JWT.refreshTokenNoCache (file:///app/.deno_cache/npm/registry.npmjs.org/google-auth-library/9.11.0/build/src/auth/jwtclient.js:173:23)
at async JWT.getRequestMetadataAsync (file:///app/.deno_cache/npm/registry.npmjs.org/google-auth-library/9.11.0/build/src/auth/oauth2client.js:333:17)
at async JWT.getRequestHeaders (file:///app/.deno_cache/npm/registry.npmjs.org/google-auth-library/9.11.0/build/src/auth/oauth2client.js:296:26)
at async GoogleAuth.authorizeRequest (file:///app/.deno_cache/npm/registry.npmjs.org/google-auth-library/9.11.0/build/src/auth/googleauth.js:737:25)
at async Promise.all (index 1)
at async prepareRequest
6 replies