grpc icon indicating copy to clipboard operation
grpc copied to clipboard

Translate errors from HTTP statuses

Open v0idpwn opened this issue 1 year ago • 3 comments
trafficstars

This is inspired in how GRPC go approaches HTTP errors when performing GRPC requests.

Error translation is useful in different situations. For example, AWS load balancer replies with a 504 when there are no live instances. There, a unavailable error is much more fitting than internal.

For go translation table: https://github.com/grpc/grpc-go/blob/273fe145d03df516018cf4642e6987e027ffc0f5/internal/transport/http_util.go#L68

v0idpwn avatar May 03 '24 12:05 v0idpwn

I didn't find where these errors are handled in Mint (if they are), so I didn't touch it. I'm not using Mint either.

v0idpwn avatar May 03 '24 12:05 v0idpwn

@v0idpwn any progress here?

sleipnir avatar May 23 '24 12:05 sleipnir

Hi, @sleipnir. I did an attempt at implementing it on the mint adapter, but ended up hitting a wall. I'll give it another stab soonish.

v0idpwn avatar Jun 19 '24 10:06 v0idpwn