If you receive a generic connection error like
Cannot connect: Exception 'Connection refused (Connection refused)' connecting to Bigquery. Please check your oauth user credentials.
Please, verify that your web proxy is allowing all the required connections (e.g. accounts.google.com).