(How do I format code in these?)
We have recently moved from the old googleads:
https://github.com/googleads/googleads-python-lib to the new google-ads:
https://github.com/googleads/google-ads-python , and have been using the
new Google API to return our Adwords data.
We had been using the old Adwords API for over 5 years and rarely - if ever
- recieved errors from the server other than the occasional "time out".
But since moving over, in the last couple of months we've been getting a
handful of 500 server side errors. Below is the stack trace. We run this
command for all clients every day, and when we get this error we just run
it again and it works.
Any help would be greatly appreicated:
Traceback (most recent call last):
File
"/usr/local/lib/python3.6/dist-packages/google/api_core/grpc_helpers.py",
line 67, in error_remapped_callable
return callable_(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/grpc/_interceptor.py", line
221, in __call__
compression=compression)
File "/usr/local/lib/python3.6/dist-packages/grpc/_interceptor.py", line
257, in _with_call
return call.result(), call
File "/usr/local/lib/python3.6/dist-packages/grpc/_channel.py", line 343,
in result
raise self
File "/usr/local/lib/python3.6/dist-packages/grpc/_interceptor.py", line
247, in continuation
compression=new_compression)
File "/usr/local/lib/python3.6/dist-packages/grpc/_interceptor.py", line
271, in with_call
compression=compression)
File "/usr/local/lib/python3.6/dist-packages/grpc/_interceptor.py", line
257, in _with_call
return call.result(), call
File "/usr/local/lib/python3.6/dist-packages/grpc/_channel.py", line 343,
in result
raise self
File "/usr/local/lib/python3.6/dist-packages/grpc/_interceptor.py", line
247, in continuation
compression=new_compression)
File "/usr/local/lib/python3.6/dist-packages/grpc/_interceptor.py", line
271, in with_call
compression=compression)
File "/usr/local/lib/python3.6/dist-packages/grpc/_interceptor.py", line
256, in _with_call
request)
File
"/usr/local/lib/python3.6/dist-packages/google/ads/googleads/interceptors/exception_interceptor.py",
line 169, in intercept_unary_unary
self._handle_grpc_failure(response)
File
"/usr/local/lib/python3.6/dist-packages/google/ads/googleads/interceptors/exception_interceptor.py",
line 141, in _handle_grpc_failure
raise self._get_error_from_response(response)
File "/usr/local/lib/python3.6/dist-packages/grpc/_interceptor.py", line
247, in continuation
compression=new_compression)
File "/usr/local/lib/python3.6/dist-packages/grpc/_channel.py", line 957,
in with_call
return _end_unary_response_blocking(state, call, True, None)
File "/usr/local/lib/python3.6/dist-packages/grpc/_channel.py", line 849,
in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated
with:
status = StatusCode.INTERNAL
details = "Internal error encountered."
debug_error_string =
"{"created":"@1653526718.874180012","description":"Error received from peer
ipv4:74.125.193.95:443","file":"src/core/lib/surface/call.cc","file_line":903,"grpc_message":"Internal
error encountered.","grpc_status":13}"
>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
...
retrieved_data = self.ga_service.search(request=self.request)
File
"/usr/local/lib/python3.6/dist-packages/google/ads/googleads/v8/services/services/google_ads_service/client.py",
line 2764, in search
request, retry=retry, timeout=timeout, metadata=metadata,
File
"/usr/local/lib/python3.6/dist-packages/google/api_core/gapic_v1/method.py",
line 145, in __call__
return wrapped_func(*args, **kwargs)
File
"/usr/local/lib/python3.6/dist-packages/google/api_core/grpc_helpers.py",
line 69, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "<string>", line 3, in raise_from
google.api_core.exceptions.InternalServerError: 500 Internal error
encountered.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/96bfc6de-b9ff-4bf4-8e2c-d50b01e3a3fbn%40googlegroups.com.