from google.cloud import pubsub_v1
if __name__ == '__main__':
publisher = pubsub_v1.PublisherClient(
credentials="/Users/quang/.config/gcloud/application_default_credentials.json"
)
a = publisher.list_topics(
timeout=10,
)
print(a)
Error: raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded
python 3.12.3
google-api-core 2.19.0
google-api-python-client 2.135.0
google-auth 2.29.0
google-auth-httplib2 0.2.0
google-cloud-core 2.4.1
google-cloud-firestore 2.16.0
google-cloud-pubsub 2.13.12
I am using Google Pub/Sub for my project. I have followed all the steps as outlined in the documentation. However, I am encountering a 504 error. Can someone help me?