grpcurl
grpcurl copied to clipboard
Fails to display response headers in case of "unexpected HTTP status code"
Current behavior: grpcurl
incorrectly states Response headers received: (empty)
despite response headers being present in case there is an unexpected status code (like 401).
Expected behavior: grpcurl
shows headers even in case there is an unexpected status code (and possibly no content).
$ grpcurl -vv -plaintext -d '<redacted>' -H "Authorization: Bearer $TOKEN" [::1]:8000 <redacted>
Resolved method descriptor:
<redacted>
Request metadata to send:
authorization: Bearer <redacted>
Response headers received:
(empty)
Response trailers received:
(empty)
Sent 1 request and received 0 responses
ERROR:
Code: Unauthenticated
Message: unexpected HTTP status code received from server: 401 (Unauthorized)
Wireshark: