我正在使用新的NSolid工具,因为我想知道我们是否可以在我工作的公司使用它。自去年以来,我们已经有了一个nodejs应用程序,我们将在不久的将来推出另一个应用程序。
我已经在linux虚拟机上安装了nsolid,并尝试使用我们当前发布的应用程序,但是我们从应用程序向其他企业服务发出的HTTPS请求出现了这个问题。
[Error: Protocol "https:" not supported. Expected "http:".] 'Error: Protocol "https:" not supported. Expected "http:". at new ClientRequest (_http_client.js:53:11) at Object.exports.request (http.js:31:10) at Object.exports.request (https.js:163:15)
N固体不支持https模块吗?如果是这样的话,有什么计划来支持它吗?
谢谢。
发布于 2015-10-13 14:33:58
nsolid似乎对https协议没有任何限制。
我正在测试我们的应用程序,发现在禁用我们正在使用的自定义传出请求(agent持活@0.1.5)时,错误消失了。
发布于 2015-10-09 15:31:01
它似乎与N#Solid无关,当您试图使用https客户端执行http请求时,我在不同的Node.js版本(v0.12.x、v4.x、N\x)上复制了这个错误:
⬢ ~ node
> http.get("https://github.com/julianduque", function (res) {})
Error: Protocol "https:" not supported. Expected "http:".
at new ClientRequest (_http_client.js:53:11)
at Object.exports.request (http.js:31:10)
at Object.exports.get (http.js:35:21)
at repl:1:6
at REPLServer.defaultEval (repl.js:164:27)
at bound (domain.js:250:14)
at REPLServer.runBound [as eval] (domain.js:263:12)
at REPLServer.<anonymous> (repl.js:392:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)你的请求做得如何?
https://stackoverflow.com/questions/33041091
复制相似问题