ganarajtejasvi opened a new issue, #8883:
URL: https://github.com/apache/apisix/issues/8883

   ### Description
   
   We are trying to use APISIX with grpc and a grpc-web request through apisix 
is resulting in a 502 response for once in 3-4 request. Ie the response for the 
below sample request is received sometimes but not always.
   
   Any help/resolution/extra configuration that would be required to route grpc 
without errors on APISIX would be appreciated. 
   Have searched this error and have found one  [(issue on 
nginx)](https://trac.nginx.org/nginx/ticket/2376) but since the issues is not 
always found not sure how to handle this.
   
   `curl --location --request POST 
'http://apisix-server.amazonaws.com:80/example_grpc.ExampleService/search' \
   --header 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
   --header 'authorization: Bearer token’ \
   --header 'content-type: application/grpc-web+proto' \
   --header 'origin: https://origin.example.com' \
   --header 'referer: https://origin.example.com/' \
   --header 'x-grpc-web: 1' \
   --header 'x-user-agent: grpc-web-javascript/0.1' \
   --header 'Host: api.example.com' \
   --data-raw '4*j
   ABCD1234
   2
   20
   38'`
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.1.0
   - Operating system (run `uname -a`): Linux apisix-567c58f6dc-4dm4k 
5.4.228-131.415.amzn2.aarch64
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): 
openresty/1.21.4.1
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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