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
Documentation example fails with proxy URL with no authority
#3331
Comments
Hi, @a-palchikov This exception is reported by Python standard lib, not Scrapy. Would you mind to post your start_urls, and the environment variables about PROXY here? |
Closing due to lack of feedback from the author. |
I have encountered this issue too. My relative proxy environment variable is |
The code probably does not expect a file path in that variable. I guess we should silently ignore those. |
Hi, I am a newcomer and I would like to take this issue |
No need to ask for permission |
Also looks like That's not how it should be, right? |
Probably no, indeed. |
I'm not sure what could be a solution to this issue. But the second option will cause further errors when the proxy is parsed in other modules. |
I guess NO_PROXY handling is very open to specific interpretations and is not standardized. Docker client describes the uses of NO_PROXY for its purposes here while scrapy can just ignore the proxy that the |
Running the example from the documentation yields this:
Looks like proxy code does not handle
no_proxy
correctly.The text was updated successfully, but these errors were encountered: