You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/12/13 09:21:50 UTC

[GitHub] [apisix-go-plugin-runner] BERZERKCOOLeST opened a new issue, #121: request help: How to get right body from grpc?

BERZERKCOOLeST opened a new issue, #121:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/121

   ### Issue description
   r.Body() gets right body from http request, but gets strange body which seems to be interceptive, when request is from grpc.
   Need to get the payload from grpc request to do something. Does it support?
   
   * APISIX Go Plugin Runner's version: 4.0
   * APISIX version:  2.13.2
   * Go version: 1.18
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-go-plugin-runner] An-DJ commented on issue #121: request help: How to get right body from grpc?

Posted by GitBox <gi...@apache.org>.
An-DJ commented on issue #121:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/121#issuecomment-1373034103

   @BERZERKCOOLeST Could you plz give the steps to reproduce the problem you met?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-go-plugin-runner] BERZERKCOOLeST commented on issue #121: request help: How to get right body from grpc?

Posted by GitBox <gi...@apache.org>.
BERZERKCOOLeST commented on issue #121:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/121#issuecomment-1373059506

   > @BERZERKCOOLeST Could you plz give the steps to reproduce the problem you met?
   
   1.  Set a route in APISIX dashboard. Set a upstream for the route and the scheme of upstream is grpc(need to implement a simple grpc service as upstream). And set plugin for it;
   2.  Send a request with payload using a grpc cli. Try to use r.Body() in plugin to get the payload, but failed, it got a messy payload.
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org