ServiceUnavailable: 503 failed to connect to all addresses
1,006 views
Skip to first unread message
Mark Schultz
unread,
Dec 16, 2021, 12:19:13 PM12/16/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API and Google Ads API Forum
Running into this error message, any help you can provide would be greatly appreciated:
Request made: ClientCustomerId: 4579869678, Host: googleads.googleapis.com, Method: /google.ads.googleads.v8.services.GoogleAdsService/SearchStream, RequestId: None, IsFault: True, FaultMessage: failed to connect to all addresses
---------------------------------------------------------------------------
_SingleThreadedRendezvous Traceback (most recent call last)
~/.local/lib/python3.6/site-packages/google/api_core/grpc_helpers.py in error_remapped_callable(*args, **kwargs)
160 return _StreamingResponseIterator(
--> 161 result, prefetch_first_result=prefetch_first
162 )
~/.local/lib/python3.6/site-packages/google/api_core/grpc_helpers.py in __init__(self, wrapped, prefetch_first_result)
82 if prefetch_first_result:
---> 83 self._stored_first_result = six.next(self._wrapped)
84 except TypeError:
~/.local/lib/python3.6/site-packages/google/ads/googleads/interceptors/exception_interceptor.py in __next__(self)
99 self._exception = e
--> 100 raise e
101
~/.local/lib/python3.6/site-packages/google/ads/googleads/interceptors/exception_interceptor.py in __next__(self)
96 try:
---> 97 self._failure_handler(self._underlay_call)
98 except Exception as e:
~/.local/lib/python3.6/site-packages/google/ads/googleads/interceptors/exception_interceptor.py in _handle_grpc_failure(self, response)
140 """
--> 141 raise self._get_error_from_response(response)
142
~/.local/lib/python3.6/site-packages/google/ads/googleads/interceptors/exception_interceptor.py in __next__(self)
91 try:
---> 92 return next(self._underlay_call)
93 except StopIteration:
~/.local/lib/python3.6/site-packages/grpc/_channel.py in __next__(self)
415 def __next__(self):
--> 416 return self._next()
417
~/.local/lib/python3.6/site-packages/grpc/_channel.py in _next(self)
619 raise self
--> 620 return self._next_response()
621
~/.local/lib/python3.6/site-packages/grpc/_channel.py in _next_response(self)
606 elif self._state.code is not None:
--> 607 raise self
608
_SingleThreadedRendezvous: <_SingleThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses"
debug_error_string = "{"created":"@1639509058.292011304","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":5390,"referenced_errors":[{"created":"@1639509058.292007960","description":"failed to connect to all addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":397,"grpc_status":14}]}"
>
The above exception was the direct cause of the following exception:
ServiceUnavailable Traceback (most recent call last)
<ipython-input-12-08f4ec253075> in <module>
7 8 #"4502009345",
----> 9 response = ga_service.search_stream(search_request) # this step needs to be repeaded to query multiple ad accounts
~/.local/lib/python3.6/site-packages/google/ads/googleads/v8/services/services/google_ads_service/client.py in search_stream(self, request, customer_id, query, retry, timeout, metadata)
2858 # Send the request.
2859 response = rpc(
-> 2860 request, retry=retry, timeout=timeout, metadata=metadata,
2861 )
2862
~/.local/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py in __call__(self, *args, **kwargs)
143 kwargs["metadata"] = metadata
144
--> 145 return wrapped_func(*args, **kwargs)
146 147
~/.local/lib/python3.6/site-packages/google/api_core/grpc_helpers.py in error_remapped_callable(*args, **kwargs)
162 )
163 except grpc.RpcError as exc:
--> 164 six.raise_from(exceptions.from_grpc_error(exc), exc)
165 166 return error_remapped_callable
/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/six.py in raise_from(value, from_value)
ServiceUnavailable: 503 failed to connect to all addresses
Google Ads API Forum Advisor
unread,
Dec 17, 2021, 12:16:48 AM12/17/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to markschul...@gmail.com, adwor...@googlegroups.com
Hi Mark,
It appears that your concern is more on implementation/integration of our client libraries rather than anything specific to Google Ads API itself. Since this is more of implementation/integration specific issue, then we would recommend reaching out the developer who maintain our client libraries here.