gpt4 book ai didi

javascript - Node.js 和 SSL 与 ReSTLer

转载 作者:行者123 更新时间:2023-11-30 06:06:29 25 4
gpt4 key购买 nike

我已经安装了最新版本的 Node.js,但 SSL 和 ReSTLer 仍然存在问题。问题在哪里?谢谢!

请求

var restler = require('./lib/restler');

restler.get('https://example.com/', {
username: 'username',
password: 'pass'
}).on('complete', function (data) {
console.log(data);
});

响应

WARNING: SSL not supported in your version of node JS

node.js:54
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ECONNRESET, Connection reset by peer
at Client._readImpl (net.js:144:14)
at Client._onReadable (net.js:424:22)
at IOWatcher.onReadable [as callback] (net.js:153:10)

最佳答案

node.js 中的 SSL 支持有问题且不完整:

http://jsconf.eu/2010/speaker/techniques_for_a_single_stack.html

我认为你必须等到它稳定。

关于javascript - Node.js 和 SSL 与 ReSTLer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4230366/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com