Proxy value parsing error
See original GitHub issueEnvironment
- pip version:19.2.3
- Python version:3.7.4
- OS:Windows 10
Description I use a proxy and I was using pip to install a few packages but as soon as I upgraded my pip to 19.2.3 I keep getting an error ERROR: Could not install packages due to an EnvironmentError: Failed to parse: http://name:pass@proxy.com:80
My password has special characters like “(”, “)”, “%”, I guess it is causing the pip to escape midway. Once I changed my password with simpler special characters like “!”, it worked.
Expected behavior Usual pip install behavior
How to Reproduce
All this with --proxy
- Try installing packages using pip using earlier versions, I used 19.1.1 or earlier.
- Then upgrade pip to 19.2.3 and try installing packages.
Output
>pip3 --proxy http://name:pass@proxy.com:80 install -r requirements.txt
ERROR: Could not install packages due to an EnvironmentError: Failed to parse: http://name:pass@proxy.com:80
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
602712 – ValueError: Error parsing "proxy = 'http'": URL must ...
> Error parsing "proxy = 'http'" This implies that yum is not seeing "proxy = http://proxy-host" but "proxy = http" ...looking at anaconda,...
Read more >Why does https.Agent throw a parse error when proxying via ...
(I've elided the complementary http agent for brevity.) I create a proxy server, as such: const proxy = httpProxy.createProxyServer({});.
Read more >Parsing issue in outbound proxy - SAP Community
I am currently working on Proxy to Soap( Sync) interface,while triggering proxy data from sap end getting below error and message is failing ......
Read more >PI18933;8.5.5: sip proxy parsing error results "internal server ...
The SIP Proxy is unable to parse the message. A parsing error occurs in the routing information portion of the message. It results...
Read more >What to do when getting parsing errors in Python? - Smartproxy
The cherry on the cake is that by the end of this article, you'll have learnt how to resolve such issues. Parsing errors...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @S-Mann, yes if you want to use any URL-special characters you just need to percent-encode them.
@kpetey123, can you please create a separate issue and provide the command you are executing and the output? Along with the other information requested in the issue form please, that would help a lot. Thank you!
Environment
I am having a similar issue, but my password does not have any special characters. below is what I am tryinig to use (not my real password, but same type of format)
pip install --proxy wss-master\dt24358:0Iuy9bnm@dstproxy.dstcorp.net:9119 ibm_db
And I am getting the same error: ERROR: Could not install packages due to an EnvironmentError: Failed to parse:
I have tried encoding the @ with %40 but that doesn’t work either. Any help would be appreciated.