Skip to content
New issue

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

Getting error: connect EHOSTUNREACH #689

Closed
ghost opened this issue Jul 18, 2018 · 1 comment
Closed

Getting error: connect EHOSTUNREACH #689

ghost opened this issue Jul 18, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 18, 2018

Hey everyone !

So, I'm trying to follow this tutorial :
https://cloud.google.com/docs/authentication/getting-started#auth-cloud-implicit-nodejs
and I'm trying to verify the authentification with the program below but I get an error.
I'm behind a company proxy and on ubuntu 16.04 . What should I do ?
Thanks for your help

ERROR: { Error: connect EHOSTUNREACH <myIPadress>
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
  code: 'EHOSTUNREACH',
  errno: 'EHOSTUNREACH',
  syscall: 'connect',
 // Imports the Google Cloud client library.
const Storage = require('@google-cloud/storage');

// Instantiates a client. If you don't specify credentials when constructing
// the client, the client library will look for credentials in the
// environment.
const storage = new Storage();

// Makes an authenticated API request.
storage
  .getBuckets()
  .then((results) => {
    const buckets = results[0];
    console.log('Buckets:');
    buckets.forEach((bucket) => {
      console.log(bucket.name);
    });
  })
  .catch((err) => {
    console.error('ERROR:', err);
  });
@fhinkel
Copy link
Contributor

fhinkel commented Nov 10, 2018

Closing this due to inactivity. Please re-open if needed.

@fhinkel fhinkel closed this as completed Nov 10, 2018
ace-n pushed a commit that referenced this issue Nov 14, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this issue Nov 21, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this issue Nov 21, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant