【发布时间】:2021-10-15 13:14:46
【问题描述】:
我在向website 发送请求时遇到问题。我正在使用“hentai”库在 Python 上使用 nhentai API 制作一个有用的电报机器人(请不要判断)。为什么在 Linux (Ubuntu) 上会出现此错误?
:~$ curl -v https://nhentai.net
* Expire in 0 ms for 6 (transfer 0x55c3a8516530)
...
* Expire in 9 ms for 1 (transfer 0x55c3a8516530)
* Trying 104.27.195.88...
* TCP_NODELAY set
* Expire in 149985 ms for 3 (transfer 0x55c3a8516530)
* Expire in 200 ms for 4 (transfer 0x55c3a8516530)
* Connected to nhentai.net (104.27.195.88) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to nhentai.net:443
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to nhentai.net:443
【问题讨论】:
-
是不是证书过期了?看看这个post
-
@AloneTogether:curl 甚至还没有收到验证证书,所以这不是问题。错误信息也明显不同于其他帖子中的问题。
标签: python python-3.x ssl python-requests openssl