oven-sh/bun · error
Unsupported cloud: ${inspect(cloud)}
Error message
Unsupported cloud: ${inspect(cloud)} What it means
Error "Unsupported cloud: ${inspect(cloud)}" thrown in oven-sh/bun.
Source
Thrown at scripts/utils.mjs:1856
}
if (typeof name === "object") {
name = name[cloud];
}
let url;
let headers;
if (cloud === "aws") {
url = new URL(name, "http://169.254.169.254/latest/meta-data/");
} else if (cloud === "google") {
url = new URL(name, "http://metadata.google.internal/computeMetadata/v1/instance/");
headers = { "Metadata-Flavor": "Google" };
} else if (cloud === "azure") {
// Azure IMDS uses a single JSON endpoint; individual fields are extracted by the caller.
url = new URL("http://169.254.169.254/metadata/instance?api-version=2021-02-01");
headers = { "Metadata": "true" };
} else {
throw new Error(`Unsupported cloud: ${inspect(cloud)}`);
}
const { error, body } = await curl(url, { headers, retries: 10 });
if (error) {
console.warn("Failed to get cloud metadata:", error);
return;
}
return body.trim();
}
/**
* @param {string} tag
* @param {Cloud} [cloud]
* @returns {Promise<string | undefined>}
*/
export async function getCloudMetadataTag(tag, cloud) {
cloud ??= await getCloud();View on GitHub (pinned to 8c5296ac45)
When it happens
Trigger: Thrown at scripts/utils.mjs:1856 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/06fe600811859e1e.
Report an issue: GitHub.