Skip to content

Instantly share code, notes, and snippets.

Error while using Node.js Cloud Client Libraries

While trying to locally run some Node.js/JavaScript code that used a Google Cloud Node.js client library, I ran into the following erorr:

(node:22057) MetadataLookupWarning: received unexpected error = request to http://123.456.789.123/computeMetadata/v1/instance failed, 
reason: connect ENOTSUP 123.456.789.123:80 - Local (192.0.0.2:63092) code = ENOTSUP
(Use `node --trace-warnings ...` to show where the warning was created)

Solution