vyvyan2010 commented on issue #6996:
URL: https://github.com/apache/apisix/issues/6996#issuecomment-1184590468

   I'm going to add 2 configuration items
   1. `cpy_details_to_body`:  if true, copy `grpc-status-details-bin` to 
response body, the one in response header won't be deleted
   {
     "error": {
       grpc-status-details-bin: 
"CA4SDk91dCBvZiBzZXJ2aWNlGlcKKnR5cGUuZ29vZ2xlYXBpcy5jb20vaGVsbG93b3JsZC5FcnJvckRldGFpbBIpCAESHFRoZSBzZXJ2ZXIgaXMgb3V0IG9mIHNlcnZpY2UaB3NlcnZpY2U"
     }
   }
   
   2. `details_proto_name`: if configured, decode `grpc-status-details-bin` to 
the following format:
   {
     "error": {
       "code": 401,
       "message": "Request had invalid credentials.",
       "details": [{"type":"service","code":1,"message":"The server is out of 
service"}]
     }
   }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to