Timeout error when trying to create gcp bucket with python on company vpn

I have been trying to create a GCP data bucket in my test gcp account assigned to me by my organisation. I keep getting a timeout error though and not sure why… any body able to help? code and error below.

import os
from google.cloud import storage


os.environ["GOOGLE_APPLICATION_CREDENTIALS"]="testproject.json"

storage_client = storage.Client()

## Create a bucket

bucket_name = 'test-bucket-25-11-2021-v5'



def create_bucket(bucket_name):
    
    bucket = storage_client.create_bucket(bucket_name)
    #bucket.create(location='europe-west2')
    print('Bucket: ' + bucket_name + ' created.')

create_bucket(bucket_name)

Error
[1]: https://i.stack.imgur.com/u2oIV.jpg

Source: Python-3x Questions

LEAVE A COMMENT