googleapis / python-pubsub

Apache License 2.0
385 stars 200 forks source link

504 Deadline Exceeded #1210

Open QuangLe1997 opened 2 months ago

QuangLe1997 commented 2 months ago

i have code

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)

it raise error in error_remapped_callable raise exceptions.from_grpc_error(exc) from exc google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded