error json format assumes that object should includes 'error' fields #1303
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Overview
HI. I'm developing grpc-based web service with protobuf-generated SDKs.
when handling Error Message According to AIP Spec(mentioned below), Server gives the Error in json format.
(which satisfies AIP Error Format. I think)
But, When Client tries to handle this error, this error shows up.
According to source code (src/googleError.ts), the input
json
parameter assumes that it "should" have "error" field (which AIP Spec doesn't describe.)I found that this format exists because Google's API Platforms compatibility reasons. but in order to support protobuf spec, Can you support protobuf Error Spec? (Google AIP Error Spec)
https://cloud.google.com/apis/design/errors#http_mapping
Google AIP Error Spec
Current Implementation (gax-nodejs)
The text was updated successfully, but these errors were encountered: