节点请求-获取错误"SSL23_GET_SERVER_HELLO:未知协议" [英] node-request - Getting error "SSL23_GET_SERVER_HELLO:unknown protocol"

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

问题描述

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

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.

Error: 29472:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_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.

简而言之,我试图将HTTP请求发送到https.

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

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

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