googleapis / googleapis/google-cloud-rust
Terrible error message with invalid endpoint
Open
type: feature request
- Dominant language
- Rust
- Stars
- 955
- Forks
- 144
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 279
Description
If you initialize a client with an endpoint that lacks the scheme, you get this error:
```
client libraries only create builders where `try_clone()` succeeds
```
The underlying `RequestBuilder` is in an error state:
```
RequestBuilder { error: reqwest::Error { kind: Builder, source: RelativeUrlWithoutBase } }
```
We should return something more meaningful.
Contributor guide
Assessment
This issue has not been assessed yet.