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

Connection closing when sending requests to a locally hosted server #2152

Open
nectariner opened this issue Mar 5, 2024 · 4 comments
Open

Comments

@nectariner
Copy link

nectariner commented Mar 5, 2024

I've set up a repository with a (hopefully) reproducible example and a brief explanation: https://github.com/nectariner/reqwest_issue_example

I could be doing something horribly wrong but hopefully not
Thanks!

@mohe2015
Copy link

mohe2015 commented Mar 5, 2024

What proxy is http://127.0.0.1:49765 ?

@nectariner
Copy link
Author

nectariner commented Mar 5, 2024

I'm not sure I understand, how would I find out?

(Maybe worth noting I've also tried with localhost and 127.0.0.1 as well)

@mohe2015

@seanmonstar
Copy link
Owner

reqwest is detecting proxies from your operating system. If you don't want that to happen, you can use the builder option .no_proxy().

@fragrans
Copy link

reqwest is detecting proxies from your operating system. If you don't want that to happen, you can use the builder option .no_proxy().

why reqwest doesn't use os system proxy setting? I also found reqwest always use proxy to access localhost (127.0.0.1).
Is it a bug?

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

No branches or pull requests

4 participants