-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
querying video_quartile_25_rate causes google.protobuf.internal.well_known_types.Error: Fail to print FieldMask to Json string #30
Comments
Hi @apurvis - thanks for bringing this issue up! It looks like a problem with how the message is serialized to JSON. I'm looking into it now and will respond here once I have more information, and if there's a necessary code change I'll post a link to the PR here. As a temporary workaround - since the error is originating from the logging interceptor - if you set your logging level to |
@apurvis just an update on this - the issue is stemming from the protobuf library, specifically the Apologies again for the inconvenience, but really do appreciate you pointing this out! |
@BenRKarl
|
@rubberviscous what's the request you're making? If you're getting an API error then setting the level to For background the protobuf utility we use here to convert protobuf message to JSON can not parse fields with a digit following an underscore, i.e. Sorry about the weird workaround. Hope the context makes sense, and that I can get this fixed soon. |
@rubberviscous linking this related issue here with a comment from @apurvis |
@BenRKarl Thank you for your response.
The query:
I'm assuming the definition for API errors could mean a bad query sent to the API? If that's the case, my requests were working fine. It only started blowing up after I added the Can you articulate on which library to disable logging for? The protobuf library or google-ads? I tried disabling via the standard logging module, but that didn't work: I also see that the |
I was able to get the query working by adding this line Thanks! |
@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. |
@rubberviscous @apurvis I was finally able to post a PR that removes json serialization of proto messages for logging. You can review it here: #95 Please feel free to leave comments or questions. Once it's merged and published you can start requesting fields such as Sorry for the delay on this one! |
Closing this as #95 was merged and published. |
This 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:
The text was updated successfully, but these errors were encountered: