We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
Darwin 22.6.0 arm64 arm
index.mjs
bun run ./index.mjs
// file: index.mjs import gcpMetadata from "gcp-metadata"; const projectId = await gcpMetadata.project(); console.log(`projectId:`, projectId);
I would expect it to throw an EHOSTDOWN error
EHOSTDOWN
In Node.js it throws the following the error:
FetchError: request to http://169.254.169.254/computeMetadata/v1/project failed, reason: connect EHOSTDOWN 169.254.169.254:80 - Local (192.168.0.218:61883) at ClientRequest.<anonymous> (/Users/weyert/Development/Projects/Experiments/bun-gcp-metadata/node_modules/node-fetch/lib/index.js:1501:11) at ClientRequest.emit (node:events:513:28) at Socket.socketErrorListener (node:_http_client:502:9) at Socket.emit (node:events:513:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { type: 'system', errno: 'EHOSTDOWN', code: 'EHOSTDOWN', config: { url: 'http://169.254.169.254/computeMetadata/v1/project', headers: { 'Metadata-Flavor': 'Google' }, retryConfig: { noResponseRetries: 3, currentRetryAttempt: 3, retry: 3, httpMethodsToRetry: [ 'GET', 'HEAD', 'PUT', 'OPTIONS', 'DELETE' ], statusCodesToRetry: [ [ 100, 199 ], [ 429, 429 ], [ 500, 599 ] ] }, responseType: 'text', timeout: 3000, paramsSerializer: [Function: paramsSerializer], validateStatus: [Function: validateStatus], method: 'GET' } }
Nothing the script keeps running without errors
Partly blocks using Bun on Google Cloud Platform
The text was updated successfully, but these errors were encountered:
For an example, how it is used in a production project: https://github.com/weyert/bun-opentelemetry/blob/main/README.md
Sorry, something went wrong.
Still broken in 1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
No branches or pull requests
What version of Bun is running?
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
index.mjs
bun run ./index.mjs
What is the expected behavior?
I would expect it to throw an
EHOSTDOWN
errorIn Node.js it throws the following the error:
What do you see instead?
Nothing the script keeps running without errors
Additional information
Partly blocks using Bun on Google Cloud Platform
The text was updated successfully, but these errors were encountered: