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
CC#
Created by IcyIme on 8/9/2023 in #help
next learn step is kinda confusing
Hmm
33 replies
CC#
Created by IcyIme on 8/9/2023 in #help
next learn step is kinda confusing
I swear to god, literally nobody talks about maui in other servers catsweat people talk about electron, tauri, etc over here all the time like they don't even know about maui catlost
33 replies
CC#
Created by IcyIme on 8/9/2023 in #help
next learn step is kinda confusing
oh they already promised then my bad
33 replies
CC#
Created by IcyIme on 8/9/2023 in #help
next learn step is kinda confusing
I have a strong feeling that they might just end up killing maui
33 replies
CC#
Created by Aki on 8/9/2023 in #help
✅ beginner
how about this one https://youtu.be/rf60MejMz3E
8 replies
CC#
Created by aidun <33 on 7/8/2023 in #help
❔ how could I make very nice looking apps in c#
mfs have been using react native all along
18 replies
CC#
Created by aidun <33 on 7/8/2023 in #help
❔ how could I make very nice looking apps in c#
just give up even microsoft don't make their fancy animated rounded edge apps with C#
18 replies
CC#
Created by Temptica on 4/24/2023 in #help
❔ Docker file for Multi-layered project
61 replies
CC#
Created by Temptica on 4/24/2023 in #help
❔ Docker file for Multi-layered project
I sometimes do it with cli dotnet publish -c Release obviously it won't if you change the name of the folder
61 replies
CC#
Created by Temptica on 4/24/2023 in #help
❔ Docker file for Multi-layered project
you don't weird ? even if you use VS to "publish" your app, the final built app ends up inside a folder called "publish"
61 replies
CC#
Created by Temptica on 4/24/2023 in #help
❔ Docker file for Multi-layered project
if you go to bin/Release/net6.0/publish/ and run dotnet My_App_Name.dll, does it work as expected?
61 replies
CC#
Created by Temptica on 4/24/2023 in #help
❔ Docker file for Multi-layered project
I mean your published app does that work?
61 replies
CC#
Created by Temptica on 4/24/2023 in #help
❔ Docker file for Multi-layered project
did you check if your built files work outside the container itself?
61 replies
CC#
Created by Temptica on 4/24/2023 in #help
❔ Docker file for Multi-layered project
maybe it's using some cache layer that it shouldn't
61 replies