【问题标题】:error occured when pulling messages拉取消息时发生错误
【发布时间】:2016-10-17 05:32:54
【问题描述】:

google.gax.errors.GaxError: GaxError(RPC 失败,由 <_rendezvous of rpc>)

为什么从 pub/sub API 拉取电子邮件时会出现这种类型的错误

【问题讨论】:

    标签: python google-cloud-pubsub


    【解决方案1】:

    这是因为您/您的应用未通过 gcloud 正确验证:

    gcloud beta auth application-default login
    

    这将输出如下内容:

    Credentials saved to file: $SOME_PATH/application_default_credentials.json
    

    然后你必须设置环境变量:

    export GOOGLE_APPLICATION_CREDENTIALS=$SOME_PATH/application_default_credentials.json
    

    运行应用程序

    希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 2021-04-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-29
      • 2019-07-29
      • 1970-01-01
      • 2019-03-09
      相关资源
      最近更新 更多