0
google-cloud-pubsubバージョン0.28に更新しました。ここでGoogleはPythonクライアントをPublisherClientとSubscriberClientに再構成しました。私はlocalhostのPubsub Emulatorに接続しようとしていましたが、環境変数を設定してもクラウドpubsubサービスに接続しています。クラウドpubsubからのすべてのトピックを一覧表示できますが、エミュレータのトピックはリストできません。Pubsub EmulatorをPublisherClientで使用するにはgoogle-cloud-pubsubバージョン0.28
Traceback (most recent call last):
File "<input>", line 5, in <module>
File "/Users/sx5640/Envs/uie/lib/python2.7/site-packages/google/cloud/pubsub_v1/_gapic.py", line 42, in <lambda>
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw)
File "/Users/sx5640/Envs/uie/lib/python2.7/site-packages/google/cloud/gapic/pubsub/v1/publisher_client.py", line 341, in get_topic
return self._get_topic(request, options)
File "/Users/sx5640/Envs/uie/lib/python2.7/site-packages/google/gax/api_callable.py", line 452, in inner
return api_caller(api_call, this_settings, request)
File "/Users/sx5640/Envs/uie/lib/python2.7/site-packages/google/gax/api_callable.py", line 438, in base_caller
return api_call(*args)
File "/Users/sx5640/Envs/uie/lib/python2.7/site-packages/google/gax/api_callable.py", line 376, in inner
return a_func(*args, **kwargs)
File "/Users/sx5640/Envs/uie/lib/python2.7/site-packages/google/gax/retry.py", line 127, in inner
' classified as transient', exception)
RetryError: RetryError(Exception occurred in retry method that was not classified as transient, caused by <_Rendezvous of RPC that terminated with (StatusCode.NOT_FOUND, Resource not found (resource=abc).)>)