bloomrpc icon indicating copy to clipboard operation
bloomrpc copied to clipboard

Setting :authority headers returns Metadata key ":authority" contains illegal characters

Open mikhainin opened this issue 4 years ago • 7 comments

Hi there, The issue claimed to be resolved but it still isn't possible to use it. Same thing happens on MacOS, bloomrpc version 1.5.2 (1.5.2.240) (and on master branch) Screenshot 2020-11-20 at 15 32 21

mikhainin avatar Nov 20 '20 15:11 mikhainin

Hi! is this still a problem? I'm unable to add the :authority header into metadata and I needed to route my requests to the GRPC server.

Imagen_13_1_21_17_20_pegada

I've tried with backslash to escape but it doesn't work either

palcalde avatar Jan 13 '21 16:01 palcalde

This is actually an issue, because it does not allow to call grpc servers behind proxies...

E.g. Gloo explicitly points to authority pseudo-header in their documentation.

https://docs.solo.io/gloo-edge/latest/guides/traffic_management/destination_types/grpc/

smnbbrv avatar Feb 04 '21 08:02 smnbbrv

I'm using version 1.5.2 and have the exact same issue when connecting to an API behind a proxy (gloo edge proxy)

mmohaveri avatar Feb 04 '21 21:02 mmohaveri

I also hit this issue.

levischuckeats avatar Jun 10 '21 22:06 levischuckeats

+1, same issue

mccauli avatar Jun 18 '21 03:06 mccauli

+1 same issue

codingknees avatar Aug 31 '21 03:08 codingknees

This probably would not work with metadata at all - based on this comment: in grpc/node:

You can't directly set the :authority header because gRPC internally handles HTTP2 protocol pseudo-headers. You can modify the authority for an entire client by setting the option "grpc.default_authority" at client construction,

Looks it should be initialized with the client creation.

kseniacold avatar Sep 03 '21 17:09 kseniacold