grpcui icon indicating copy to clipboard operation
grpcui copied to clipboard

-unix does not work and expects a port

Open mluhmann opened this issue 11 months ago • 4 comments

in grpcurl ./grpcurl -plaintext -unix /var/run/grpc.sock list does work fine with my server.

But with grpcui it does not start up and outputs an error.

./grpcui -plaintext -unix /var/run/grpc.sock Failed to dial target host "/var/run/grpc.sock": connection error: desc = "transport: error while dialing: dial tcp: address /var/run/grpc.sock: missing port in address"

mluhmann avatar Mar 17 '25 11:03 mluhmann

@mluhmann looking at the code differences between grpcurl and grpcui, it's not obvious what the difference is. Can you try something for me?

  • pass in authority=localhost https://github.com/fullstorydev/grpcurl/pull/445

dragonsinth avatar Mar 17 '25 17:03 dragonsinth

This started happening to me too on version 1.4.3. The same command has worked against the same socket previously.

The equivalent grpcurl command fails with the same error for me, though.

Edit: using version 1.4.1 works for me. There must've been a regression at some point.

disposedtrolley avatar Mar 18 '25 04:03 disposedtrolley

yes, I almost forgot about that. I am not working with the newest grpcurl because of this issue. https://github.com/fullstorydev/grpcurl/issues/496 Thanks for the hint, I will go back to an older version.

mluhmann avatar Mar 18 '25 08:03 mluhmann

Duplicates https://github.com/fullstorydev/grpcurl/issues/496

See workaround for current version:

grpcurl -plaintext -authority dummy unix:///tmp/actions.sock list

dragonsinth avatar Mar 18 '25 12:03 dragonsinth