googleapis / googleapis/google-cloud-rust

Terrible error message with invalid endpoint

Open
#4,683 0 comments 0 reactions 0 assignees View on GitHub
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

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.