-
Notifications
You must be signed in to change notification settings - Fork 65
Handle google.rpc.ErrorInfo
in HttpJson*Stub class
#2237
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
Comments
In the possible solution part, the types are added recursively in However, only two types serves as the "root" of this method, |
Took a look at some of the code in Gax and I believe it may be due to the ProtoOperationTransformers: Lines 130 to 140 in 9d30ed9
ServiceStubSettings transforms it from Any to the classes: Lines 792 to 795 in 9d30ed9
I believe conversion from Any -> Class would require a TypeRegistry. |
I'm afraid this issue is more complicated than we expected. The new Showcase feature tests that we can deserialize an In the mean time, I think it's still worth it to add a showcase test for gRPC. |
I'll be demoting this to p3 |
Verified that adding Theoretically this issue can be tackled individually, but it will likely be resolved if the actionable ErrorDetails project is implemented for httpjson. Hence keeping this as a P3. |
I reported a related issue at googleapis/java-spanner#3640. That issue is about a failure in parsing error status during server streaming calls. It has two underlying problems:
|
Followup on #2229.
The generated HttpJsonEchoStub can't handle message type:
google.rpc.ErrorInfo
introduced byecho.proto
(version0.29.0
).A easy integration test:
failed with the following error message:
Possible solution:
Add the message type in
sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/rest/HttpJsonServiceStubClassComposer.java
Lines 1279 to 1286 in 003b993
The text was updated successfully, but these errors were encountered: