Skip to content

Conversation

@bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Apr 29, 2025

This seems to fix the issues from GAPIC Showcase where Rest and gRPC return different error details.

See @gapic-generator-php/tests/Conformance/ShowcaseTest.php

Also see https://google.aip.dev/193

Is it okay to hardcode grpc-status-details-bin?

(this seems to be OK, according to protobuf README), but I still don't understand how grpc-status-details-bin works. For PHP this is where google.rpc.Status message is encoded. I am guessing it gets thrown into the error response (which is a PHP Standard Object, and NOT a protobuf message) because it wants to provide an error message that ISN'T a protobuf message (in case that class doesn't exist).

There's still ONE detail that I haven't found documented anywhere, which is, the grpc-status-details-bin is an ARRAY... so does that mean there can be multiple statuses returned in an error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants