Open ivasonn opened 6 years ago
Adding TE
header for request solved this problem
@ivasonn That makes sense, thanks for investigation. gRPC requires TE
header (value trailers
).
I think grpc-bridge should add that header, how does this handled at Lyft? @junr03 @ccaraman @danielhochman?
Hmm I guess we aren't hitting this issue for some reason, I'm not sure why.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.
I just bumped into this issue too ... for anyone else that hits this issue here's what I added to the http post to resolve the issue:
url = "http://{host}:{port}/kv.KV/Get".format(host=self._host, port=self._port)
response = requests.post(url, data=data, headers={
'Host': self._host,
'content-type': 'application/grpc',
# Add this header to fix the issue:
'te': 'trailers',
# Additional headers for controlling timeouts and retries:
'x-envoy-retry-on': '5xx',
'x-envoy-upstream-rq-per-try-timeout-ms': '1500',
'x-envoy-upstream-rq-timeout-ms': '30000',
})
Mind if I make a bug fix PR for this one @mattklein123?
Thx, Glenn
@gnagel sure please fix.
After replacing go service with python in grpc-bridge example. I'm getting follow in headers with empty response
repo - https://github.com/ivasonn/grpc-bridge-python
Admin and Stats Output:
Config:
Logs: