-
Notifications
You must be signed in to change notification settings - Fork 69
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
report to users server errors over REST #1408
Comments
This seems related to #1407. I'm still fixing multiple issues found by running unit tests (via py_test target). This PR googleapis/python-api-core#428 will have a great impact on how we transcode and serialize our request messages (it is also expected to fix many similar issues). |
To be clear: yes, this issue was sparked by my running into the issue in #1407, but this itself is a separate issue: that when we get an error from the server, we don't report it to the user, but merely get a type error and a stack dump. We should be reporting the error information (in this case, the In that sense, this might be another manifestation of python-compute#279, although there it did not manifest as an exception but as a non-informative error message. |
@atulep , can you take a look at this? |
The error occurs because The payload we receive is:
It looks to me like I think most APIs now send |
This issue affects only REST which we don't support yet. Additionally, it's been discovered only with synthetic Showcase test case, which may not be doing all the things real APIs do - hence the error may only affect Showcase. As such, lowering priority to P2 sounds reasonable here. |
A couple of points here:
|
Right now, it looks like for at least some server errors, we do not handle or report them to the user and instead (if we're lucky?) encounter an exception later. Case in point: Showcase does not recognize capitalized booleans over rest (the issue in #1407) and returns an error. I can reproduce the error with
curl
, and the HTTP body isUsing the Python GAPIC, I simply get an exception
If I don't catch the exception, the stack trace is (full filepaths redacted):
Reporting errors correctly should be a blocker for launching REGAPIC.
The text was updated successfully, but these errors were encountered: