GHHG10/CodeServer / opencode /patches /gcp-metadata@8.1.2.patch
GHHG10's picture
download
raw
625 Bytes
diff --git a/build/src/index.js b/build/src/index.js
--- a/build/src/index.js
+++ b/build/src/index.js
@@ -323,6 +323,10 @@ async function isAvailable() {
if (process.env.DEBUG_AUTH) {
console.info(err);
}
+ // Promise.any() rejects with AggregateError when neither metadata host
+ // is available. This is expected outside GCP, not a warning condition.
+ if (err instanceof AggregateError)
+ return false;
if (err.type === 'request-timeout') {
// If running in a GCP environment, metadata endpoint should return
// within ms.

Xet Storage Details

Size:
625 Bytes
·
Xet hash:
7120b55bf8728acd97ff1ecc38967864e6658d413257ccf7c8bb13b11f1bd982

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.