node.js - 使用代理时出现 AssertionError
问题描述
我正在使用代理列表在nodejs中进行请求有我的代码
request.get({
url: 'https://google.com',
proxy: proxy[i],
timeout: 1000
}, function(err, res, body){
console.log(err)
})
我有 100 个代理,其中一些给我这个错误,例如这个代理 89.20.135.204:80
assert.js:42
throw new errors.AssertionError({
^
AssertionError [ERR_ASSERTION]: 5 == 0
at ClientRequest.onConnect (/Users/admin/Desktop/files/node_modules/tunnel-agent/index.js:160:14)
我该如何处理?if(err) next proxy ,没有帮助
解决方案
推荐阅读
- ios - 哪一种是在第一个中集成/合并第二个 ios 项目的有效方法
- testing - 如何逐步配置botium进行聊天机器人测试?
- r - DataCamp 和 Rstudio 中 ggplot2 输出的差异
- openstack - openstack浮动ip无法访问
- python - 如何打印此代码中最后三个值的平均值?
- android - Windows 7中的Android Studio安装错误
- css - IE8 中的 CSS 内容和位置
- ios - Xcode Simulator - CyMemDef.dylib:mach-o,但不是为 iOS 模拟器构建的
- kubernetes - 如何从作为配置映射附加到 pod 的文件中读取变量?
- liferay - Liferay 邮件正在发送带有标题的主机名和用户信息