-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Use status_pb2.Status to parse error messages from Datastore #1618
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
Use status_pb2.Status to parse error messages from Datastore #1618
Conversation
|
@pcostell Why not merge? Other than adding |
|
@dhermes - Sure I can submit it (I wasn't sure if we wanted to do more with the error than just grab the message, but I added a todo). PTAL. |
|
The pylint failure looks like it should be addressed by merging the change from #1583 into the |
gcloud/datastore/connection.py
Outdated
| if status != '200': | ||
| raise make_exception(headers, content, use_json=False) | ||
| # TODO(pcostell): There is more information in the error besides | ||
| # the message that should be passed on. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@pcostell Too much to ask to squash the 4 commits down to 1? |
f5e686a to
5b3b7d5
Compare
|
No more TODO and squashed. |
|
Great. In order to pass the # DEFAULT: ignored-modules=
+# RATIONALE: six aliases stuff for compatibility.
+# google.protobuf fixes up namespace package "late".
+ignored-modules = six, google.protobuf |
|
@pcostell, rebase now and we can get this merged? |
|
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
30d3c65 to
3b44173
Compare
|
CLAs look good, thanks! |
|
Rebased and ready for merge. |
Use status_pb2.Status to parse error messages from Datastore
* fix: ignore_unknown_fields parsing service config * oops capital True * reformat args Co-authored-by: Alexander Fenster <fenster@google.com> --------- Co-authored-by: Alexander Fenster <fenster@google.com>
* chore: update templated files * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Addresses #1617
Note that status has other information too that likely should get exposed. This is just an example of what the expected response is.