nsolid 不支持 HTTPS
HTTPS not supported in nsolid
我正在使用新的 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)
nsolid不支持https模块吗?
如果是这样,有没有支持的计划?
谢谢。
这似乎与 N|Solid 无关,当您尝试使用 http
客户端执行 https
请求时会发生此错误,我在不同的 Node.js 版本上重现了此错误( v0.12.x, v4.x, N|Solid):
⬢ ~ 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)
你的请求怎么样了?
似乎nsolid对https协议没有任何限制。
我正在测试我们的应用程序并发现,禁用我们正在使用的自定义传出请求 (agentkeepalive@0.1.5),错误消失了。
我正在使用新的 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)
nsolid不支持https模块吗? 如果是这样,有没有支持的计划?
谢谢。
这似乎与 N|Solid 无关,当您尝试使用 http
客户端执行 https
请求时会发生此错误,我在不同的 Node.js 版本上重现了此错误( v0.12.x, v4.x, N|Solid):
⬢ ~ 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)
你的请求怎么样了?
似乎nsolid对https协议没有任何限制。
我正在测试我们的应用程序并发现,禁用我们正在使用的自定义传出请求 (agentkeepalive@0.1.5),错误消失了。