Error "Bad gRPC response. HTTP status code: 500" when set $var in NGINX grpc_pass #2113
-
When i set $var in grpc_pass i can't connect grpc-client to server, I get the FAIL error
The purpose of setting a variable is to bypass the situation where one of the services that proxies NGINX crashes, and when NGINX restarts, the other services continue to work. With proxy_pass directive all works and tests are successful, with grpc_pass - no
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After a long review of the materials and tests, the error was discovered. If we are using So the working configuration for me is:
Interestingly, for proxy_pass port is not necessary to specify, I think due to the indication of https:// With this configuration, any stack that nginx maintains can be wiped out of the available stacks, and nginx will not send |
Beta Was this translation helpful? Give feedback.
After a long review of the materials and tests, the error was discovered.
If we are using
variables
in the configuration,grpc_pass
should have a port on which this grpc can be listened, in this example https and grpcs will use port 443.So the working configuration for me is: