我想从 CentOS 设置电报机器人 webhook,但收到错误:
curl: (35) TCP connection reset by peer
Run Code Online (Sandbox Code Playgroud)
我的请求:
curl -F "url=https://12.34.56.78:8443" \
-F "certificate=@/home/mts/mtspredbot/mtspredbot.pem" \
https://api.telegram.org/xxxxxxxxxxxxxxxxxxxxxxx/setWebhook
Run Code Online (Sandbox Code Playgroud)
这个问题与我的输出连接有关还是与其他问题有关?
使用 -v 选项:
$ curl -v -F "url=https://12.34.56.78:8443" -F "certificate=@/home/mts/mtspredbot/mtspredbot.pem" https://api.telegram.org/token_here/setWebhook
* About to connect() to api.telegram.org port 443 (#0)
* Trying 149.154.167.220...
* Connected to api.telegram.org (149.154.167.220) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -5961 (PR_CONNECT_RESET_ERROR)
* TCP connection reset by peer
* Closing connection 0
curl: (35) TCP connection reset by peer
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
13697 次 |
| 最近记录: |