Find out why logging doesn't work on service instance.
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 302
- PR merge metrics
- No merged PRs in 30d
Description
It fails with this:
```
Traceback (most recent call last):
File "/tmp/fuzzbench-automatic-experiment-repo/common/retry.py", line 81, in _wrapper
result = func(*args, **kwargs)
File "/tmp/fuzzbench-automatic-experiment-repo/common/logs.py", line 191, in _report_error_with_retries
_error_reporting_client.report(message)
File "/tmp/fuzzbench-automatic-experiment-repo/.venv/lib/python3.8/site-packages/google/cloud/error_reporting/client.py", line 357, in report
self._send_error_report(
File "/tmp/fuzzbench-automatic-experiment-repo/.venv/lib/python3.8/site-packages/google/cloud/error_reporting/client.py", line 317, in _send_error_report
self.report_errors_api.report_error_event(error_report)
File "/tmp/fuzzbench-automatic-experiment-repo/.venv/lib/python3.8/site-packages/google/cloud/error_reporting/_gapic.py", line 73, in report_error_event
self._gapic_api.report_error_event(
File "/tmp/fuzzbench-automatic-experiment-repo/.venv/lib/python3.8/site-packages/google/cloud/errorreporting_v1beta1/services/report_errors_service/client.py", line 432, in report_error_event
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
File "/tmp/fuzzbench-automatic-experiment-repo/.venv/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py", line 145, in __call__
return wrapped_func(*args, **kwargs)
File "/tmp/fuzzbench-automatic-experiment-repo/.venv/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 69, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "", line 3, in raise_from
google.api_core.exceptions.PermissionDenied: 403 Request had insufficient authentication scopes.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/fuzzbench-automatic-experiment-repo/.venv/lib/python3.8/site-packages/google/api_core/grpc_helpers.py", line 67, in error_remapped_callable
return callable_(*args, **kwargs)
File "/tmp/fuzzbench-automatic-experiment-repo/.venv/lib/python3.8/site-packages/grpc/_channel.py", line 946, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/tmp/fuzzbench-automatic-experiment-repo/.venv/lib/python3.8/site-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.PERMISSION_DENIED
details = "Request had insufficient authentication scopes."
debug_error_string = "{"created":"@1637242902.586894691","description":"Error received from peer ipv4:74.125.132.95:443","file":"src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"Request had insufficient authentication scopes.","grpc_status":7}"
```
Also, we need to make sure if retry is called from logs.py that it does not log.
Contributor guide
Assessment
This issue has not been assessed yet.