Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js OpenStack Swift插件连接错误_Node.js_Ssl_Https_Openstack Swift - Fatal编程技术网

Node.js OpenStack Swift插件连接错误

Node.js OpenStack Swift插件连接错误,node.js,ssl,https,openstack-swift,Node.js,Ssl,Https,Openstack Swift,我用NodeJS和 我在尝试实现连接时遇到此错误 无法连接到Swift!错误:write EPROTO 101057795:错误:140770FC:SSL例程:SSL23\u GET\u SERVER\u HELLO:未知协议:openssl\SSL\s23\u clnt.c:794 似乎它正在尝试使用https,但我看不到在选项中禁用和使用标准http 谢谢。你说得对。此插件默认使用https连接。因此,要将其更改为http,您可以将librarie的swift.js文件中的第一个recuri

我用NodeJS和 我在尝试实现连接时遇到此错误

无法连接到Swift!错误:write EPROTO 101057795:错误:140770FC:SSL例程:SSL23\u GET\u SERVER\u HELLO:未知协议:openssl\SSL\s23\u clnt.c:794

似乎它正在尝试使用https,但我看不到在选项中禁用和使用标准http


谢谢。

你说得对。此插件默认使用https连接。因此,要将其更改为http,您可以将librarie的
swift.js
文件中的第一个
recurie('https')
编辑为
recurie('http')


谢谢@Serob_b,这对我很有效。似乎作者在配置设置中跳过了这个功能,我想很多用户都会遇到这个问题。是的,最好让用户有机会在连接类型之间进行选择。但在github中,您可以推送您的变体;)
 var https = requrie('http')