-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
The http
commands in the Network category don't seem to respect system HTTP/S proxy settings
#8847
Comments
Same here, with nu |
Is there a workaround in which I can use i.e. |
If you are for example dealing with a JSON API endpoint you can run If we can inherit system proxy settings without too much trouble, we should probably look into fixing this but we certainly should not grow nushells networking commands to the configuration flexibility of |
Yeah, I didn't want to propose to get feature complete with curl :) |
I agree. I was trying to make http work but I cant pass proxy options in any way. Hope this gets resolved. curl command works by the way. |
Closes #8847 # Description If the `HTTP_PROXY` variable is found, use its value to setup ureq proxy. I haven't implemented `NO_PROXY` at the moment. # User-Facing Changes No breaking change for the user, the network commands simply use an environment variable. # Tests + Formatting The existing tests seem to run fine, although I can't think of a new test to add.
Closes nushell#8847 # Description If the `HTTP_PROXY` variable is found, use its value to setup ureq proxy. I haven't implemented `NO_PROXY` at the moment. # User-Facing Changes No breaking change for the user, the network commands simply use an environment variable. # Tests + Formatting The existing tests seem to run fine, although I can't think of a new test to add.
Describe the bug
Sometimes I use nushell in environments where web traffic must be routed through a specific proxy in order to reach the internet. This is usually fine since most tools support proxy-specific configuration either through system-level configs or through environment variables. As such, my personal config has variables set such as
HTTP_PROXY
,HTTPS_PROXY
, andNO_PROXY
along with their lower-case equivalents. Unfortunately, it seems thathttp
commands in the Network category do not respect any of these variables nor could I uncover how to make them aware of a proxy by some other means.I did want to point out that I did see a half-filled out issue (now closed) which mentioned this matter, which would be #8743.
How to reproduce
From behind a proxy, even with environment variables set, the following fails:
This happens every time but does not happen from machines which are not behind such web proxies.
Expected behavior
Given correct configuration, I would have expected the
http get
invocation to have succeeded and produced the same output as it does when not behind a proxy.Screenshots
No response
Configuration
Additional context
Happy to provide more info wherever I can, and/or work to help test things. I'm a huge fan of the project and grateful for everyone's efforts.
Thanks,
+Jonathan
The text was updated successfully, but these errors were encountered: