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

SSL error #87

Open
ghost opened this issue Dec 4, 2021 · 5 comments
Open

SSL error #87

ghost opened this issue Dec 4, 2021 · 5 comments
Labels
wontfix This will not be worked on

Comments

@ghost
Copy link

ghost commented Dec 4, 2021

🐛 Bug Report

我使用proxychains加上v2ray进行代理操作,但是当我使用proxychains进行代理下载时,会发生ssl错误。顺便一提,我尝试给xvideos-dl添加代理设置,但是还是无法避免这个错误,我搞不定了。

🔬 How To Reproduce

Steps to reproduce the behavior:

➜  ~ xvideos-dl https://www.xvideos.com/video36099195/i_m_japanese_i_m_japanese\#
HTTPSConnectionPool(host='www.xvideos.com', port=443): Max retries exceeded with url: /video36099195/i_m_japanese_i_m_japanese (Caused by 
NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f1955fb0a60>: Failed to establish a new connection: [Errno 101] 
Network is unreachable')), Retrying in 1 seconds...
HTTPSConnectionPool(host='www.xvideos.com', port=443): Max retries exceeded with url: /video36099195/i_m_japanese_i_m_japanese (Caused by 
NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f1955f4a340>: Failed to establish a new connection: [Errno 101] 
Network is unreachable')), Retrying in 2 seconds...
HTTPSConnectionPool(host='www.xvideos.com', port=443): Max retries exceeded with url: /video36099195/i_m_japanese_i_m_japanese (Caused by 
NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f1955f4a610>: Failed to establish a new connection: [Errno 101] 
Network is unreachable'))

Code sample

Environment

  • OS:

██████████████████ ████████ closetool@closetool-redmibook14ii
██████████████████ ████████ OS: Manjaro 21.2.0 Qonos
██████████████████ ████████ Kernel: x86_64 Linux 5.10.79-1-MANJARO
██████████████████ ████████ Uptime: 3h 32m
████████ ████████ Packages: 1590
████████ ████████ ████████ Shell: zsh 5.8
████████ ████████ ████████ Resolution: 1920x1080
████████ ████████ ████████ DE: KDE 5.88.0 / Plasma 5.23.3
████████ ████████ ████████ WM: KWin
████████ ████████ ████████ GTK Theme: Bigsur-gtk [GTK2/3]
████████ ████████ ████████ Icon Theme: Tela-circle-green-dark
████████ ████████ ████████ Disk: 171G / 337G (54%)
████████ ████████ ████████ CPU: AMD Ryzen 5 4500U with Radeon Graphics @ 6x 2.375GHz
████████ ████████ ████████ GPU: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c3)
RAM: 4249616384-

  • Python version, get it with:
    ➜ ~ python -V
    Python 3.9.7
python --version
@ghost ghost added the bug Something isn't working label Dec 4, 2021
@github-actions
Copy link

github-actions bot commented Dec 4, 2021

Hello @kiloson-c, thank you for your interest in our work!

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

@lonsty
Copy link
Owner

lonsty commented Dec 4, 2021

貌似代理设置有问题,不能请求到数据,运行 curl -v https://www.xvideos.com/video36099195/i_m_japanese_i_m_japanese\# 并把结果贴出来看看。

@ghost
Copy link
Author

ghost commented Dec 4, 2021

@lonsty

➜  ~ curl -v https://www.xvideos.com/video36099195/i_m_japanese_i_m_japanese\#
*   Trying 93.46.8.89:443...
*   Trying 2001::a88f:abba:443...
* Immediate connect fail for 2001::a88f:abba: 网络不可达
* connect to 93.46.8.89 port 443 failed: 拒绝连接
* Failed to connect to www.xvideos.com port 443 after 337 ms: 拒绝连接
* Closing connection 0
curl: (7) Failed to connect to www.xvideos.com port 443 after 337 ms: 拒绝连接
➜  ~ proxychains curl -v https://www.xvideos.com/video36099195/i_m_japanese_i_m_japanese\#
[proxychains] config file found: /home/closetool/.proxychains/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.15
*   Trying 93.46.8.89:443...
[proxychains] Dynamic chain  ...  127.0.0.1:8889  ...  127.0.0.1:1089  ...  93.46.8.89:443  ...  OK
* Connected to www.xvideos.com (127.0.0.1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.xvideos.com:443 
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.xvideos.com:443 
➜  ~ proxychains curl -v https://www.xvideos.com                                          
[proxychains] config file found: /home/closetool/.proxychains/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.15
*   Trying 103.252.115.221:443...
[proxychains] Dynamic chain  ...  127.0.0.1:8889  ...  127.0.0.1:1089  ...  103.252.115.221:443  ...  OK
* Connected to www.xvideos.com (127.0.0.1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.xvideos.com:443 
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.xvideos.com:443 

代理本身应该没有问题,通过proxychains可以访问到youtube

@lonsty
Copy link
Owner

lonsty commented Dec 6, 2021

代理设置问题,非工具问题

@lonsty lonsty added wontfix This will not be worked on and removed bug Something isn't working labels Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants
@lonsty and others