grpc / grpc/grpc-rust

Channel::from_shared doesn't support unix URIs

Open
#2,546 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

## Bug Report

If I do `Channel::from_shared("unix:///tmp/test")` I get a `invalid URI unix:///tmp/test. Reason invalid format`. This is because the URI is parsed by `http::uri::Uri` which doesn't support that protocol.

`Endpoint::from_shared` works fine though since this PR: https://github.com/hyperium/tonic/pull/2218

I can switch to `Endpoint::from_shared` but this behavior is a bit unexpected.

### Version

`0.14.2`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.