Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlurlClient BaseUrl ignored #621

Closed
AeonLucid opened this issue Apr 28, 2021 · 2 comments
Closed

FlurlClient BaseUrl ignored #621

AeonLucid opened this issue Apr 28, 2021 · 2 comments
Labels

Comments

@AeonLucid
Copy link
Contributor

I am not sure if this is my mistake so please let me know, but this used to work with Flurl 2.x.

var client = new FlurlClient
{
    BaseUrl = "http://httpbin.org"
};

await "/get"
    .WithClient(client)
    .GetStringAsync();

Results in

Unhandled exception. Flurl.Http.FlurlHttpException: Call failed. An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set: GET /get
 ---> System.InvalidOperationException: An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
@AeonLucid AeonLucid added the bug label Apr 28, 2021
@RobThree
Copy link

Maybe #590 is related?

@AeonLucid
Copy link
Contributor Author

AeonLucid commented Apr 30, 2021

I did indeed end up doing client.Request("/get") instead later, closing as it is duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants