querying video_quartile_25_rate causes google.protobuf.internal.well_known_types.Error: Fail to print FieldMask to Json string
See original GitHub issueThis issue arose trying to upgrade to package 0.6/API 0.7. Trying to query metrics.video_quartile_25_rate
gives google.protobuf.internal.well_known_types.Error: Fail to print FieldMask to Json string: The character after a “_” must be a lowercase letter in path name metrics.video_quartile_25_rate.
full stack trace:
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/google/api_core/page_iterator.py", line 199, in _items_iter
for page in self._page_iter(increment=False):
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/google/api_core/page_iterator.py", line 230, in _page_iter
page = self._next_page()
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/google/api_core/page_iterator.py", line 512, in _next_page
response = self._method(self._request)
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/google/api_core/gapic_v1/method.py", line 139, in __call__
return wrapped_func(*args, **kwargs)
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/google/api_core/retry.py", line 260, in retry_wrapped_func
on_error=on_error,
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/google/api_core/retry.py", line 177, in retry_target
return target()
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/google/api_core/timeout.py", line 206, in func_with_timeout
return func(*args, **kwargs)
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/google/api_core/grpc_helpers.py", line 59, in error_remapped_callable
return callable_(*args, **kwargs)
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/grpc/_interceptor.py", line 201, in __call__
credentials=credentials)
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/grpc/_interceptor.py", line 226, in _with_call
return call.result(), call
File "/Users/oogabooga/repos/airflow-workflows/.venv/lib/python2.7/site-packages/grpc/_interceptor.py", line 116, in result
raise self._exception
google.protobuf.internal.well_known_types.Error: Fail to print FieldMask to Json string: The character after a "_" must be a lowercase letter in path name metrics.video_quartile_25_rate.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
FieldMask.toJson() produces string array instead of ... - GitHub
Hello,. I'm working on an ReactTS application which made requests to a JSON Rest API using protobuf definitions. protobuf.js version: 6.9.0.
Read more >JsonFormat.Printer - Google Developers
Object. A Printer converts protobuf message to JSON format. ... Printer that will print enum field values as integers instead of as string....
Read more >Java: JSON -> Protobuf & back conversion - Stack Overflow
This seems to have changed to JsonFormat.printer().print(MessageOrBuilder) in newer versions. – vdimitrov. Nov 11, 2017 at 17:04.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rubberviscous that definitely works, or you could also disable logging via the configuration by commenting out or removing the lines related to logging.
I’m hoping to refactor the logging interceptor very soon so that it doesn’t serialize to JSON, once that’s finished I’ll comment here to let you know.
Closing this as https://github.com/googleads/google-ads-python/pull/95 was merged and published.