节点请求 - 出现错误“SSL23_GET_SERVER_HELLO:未知协议"; [英] node-request - Getting error "SSL23_GET_SERVER_HELLO:unknown protocol"

查看:48
本文介绍了节点请求 - 出现错误“SSL23_GET_SERVER_HELLO:未知协议";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 node-request 模块,定期向一组 URL 发送 GET 请求,有时还会获取在某些网站上出现以下错误.

I'm using the node-request module, regularly sending GET requests to a set of URLs and, sometimes, getting the error below on some sites.

错误:29472:错误:140770FC:SSL 例程:SSL23_GET_SERVER_HELLO:未知协议:opensslssls23_clnt.c:683

问题是我不会总是或总是在某些 URL 上收到此错误,只是有时.此外,它不能被strictSSL: false"忽略.

The problem is that I don't get this error always or always on the some URLs, just sometimes. Also, it can't be ignored with "strictSSL: false".

我读到这可能与我使用错误的协议(SSLv2、SSLv3、TLS ..)发送 SSL 请求有关.但这并不能解释为什么它会不规律地发生.

I have read that this can be related to me sending SSL requests with the wrong protocol (SSLv2, SSLv3, TLS..). But this doesn't explain why it happens irregularly.

顺便说一句,我在 Win 2008 服务器上运行 nodejs.

Btw, I'm running nodejs on a Win 2008 server.

感谢任何帮助.

推荐答案

这完全是我的错.

我在代码的一部分上使用了标准节点 http.request,它应该只向 http 地址发送请求.似乎数据库有一个 https 地址,它以随机间隔进行查询.

I was using standard node http.request on a part of the code which should be sending requests to only http adresses. Seems like the db had a single https address which was queried with a random interval.

简单地说,我试图向 https 发送 http 请求.

Simply, I was trying to send a http request to https.

这篇关于节点请求 - 出现错误“SSL23_GET_SERVER_HELLO:未知协议";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆