google.api_core.exceptions.ServiceUnavailable: 503 failed to connect to all addresses

2,485 views
Skip to first unread message

pqm peng

unread,
Sep 15, 2021, 3:39:08 AM9/15/21
to AdWords API and Google Ads API Forum
Request made: ClientCustomerId: ***********, Host: googleads.googleapis.com, Method: /google.ads.googleads.v8.services.GoogleAdsService/SearchStream, RequestId: None, IsFault: True, FaultMessage: failed to connect to all addresses
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\google\api_core\grpc_helpers.py", line 160, in error_remapped_callable
    return _StreamingResponseIterator(
  File "C:\ProgramData\Anaconda3\lib\site-packages\google\api_core\grpc_helpers.py", line 83, in __init__
    self._stored_first_result = six.next(self._wrapped)
  File "C:\ProgramData\Anaconda3\lib\site-packages\google\ads\googleads\interceptors\response_wrappers.py", line 98, in __next__
    raise e
  File "C:\ProgramData\Anaconda3\lib\site-packages\google\ads\googleads\interceptors\response_wrappers.py", line 95, in __next__
    self._failure_handler(self._underlay_call)
  File "C:\ProgramData\Anaconda3\lib\site-packages\google\ads\googleads\interceptors\exception_interceptor.py", line 71, in _handle_grpc_failure
    raise self._get_error_from_response(response)
  File "C:\ProgramData\Anaconda3\lib\site-packages\google\ads\googleads\interceptors\response_wrappers.py", line 85, in __next__
    message = next(self._underlay_call)
  File "C:\Users\Admin\AppData\Roaming\Python\Python38\site-packages\grpc\_channel.py", line 426, in __next__
    return self._next()
  File "C:\Users\Admin\AppData\Roaming\Python\Python38\site-packages\grpc\_channel.py", line 642, in _next
    return self._next_response()
  File "C:\Users\Admin\AppData\Roaming\Python\Python38\site-packages\grpc\_channel.py", line 617, in _next_response
    raise self
grpc._channel._SingleThreadedRendezvous: <_SingleThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses"
debug_error_string = "{"created":"@1631689752.856000000","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3187,"referenced_errors":[{"created":"@1631689752.856000000","description":"failed to connect to all addresses","file":"src/core/lib/transport/error_utils.cc","file_line":146,"grpc_status":14}]}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:/Users/Admin/PycharmProjects/pythonProject3/test5.py", line 14, in <module>
    print(ga_service.search_stream(customer_id=customer_id, query=query))
  File "C:\ProgramData\Anaconda3\lib\site-packages\google\ads\googleads\v8\services\services\google_ads_service\client.py", line 2933, in search_stream
    response = rpc(
  File "C:\ProgramData\Anaconda3\lib\site-packages\google\api_core\gapic_v1\method.py", line 145, in __call__
    return wrapped_func(*args, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\google\api_core\grpc_helpers.py", line 164, in error_remapped_callable
    six.raise_from(exceptions.from_grpc_error(exc), exc)
  File "<string>", line 3, in raise_from
google.api_core.exceptions.ServiceUnavailable: 503 failed to connect to all addresses

Google Ads API Forum Advisor

unread,
Sep 15, 2021, 9:55:58 PM9/15/21
to pqm...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for posting your concern.

Before proceeding to your concern, I would like to suggest first to continue the discussion of your specific concern to one forum post only for better tracking of updates.

Moving forward to your issue, it appears that the issue is more client library specific. With this, I would suggest posting the issue that you encountered on this link to get support from the author of the client library as they are more equipped to this topic.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2NUHAt:ref
Reply all
Reply to author
Forward
0 new messages