尝试用node的request以及axios爬取网站都发送这个错误是什么原因??
Error: write EPROTO 3168:error:1010A066:elliptic curve routines:ecx_key_op:invalid encoding:c:\ws\deps\openssl\openssl\crypto\ec\ecx_meth.c:65:
3168:error:141A4132:SSL routines:tls_process_ske_ecdhe:bad ecpoint:c:\ws\deps\openssl\openssl\ssl\statem\statem_clnt.c:2231:
at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16) {
errno: -4046,
code: 'EPROTO',
syscall: 'write'
}
你是不是使用了代理,然后代理没配正确?或者是对方是https,然后你的访问的是http的?可以看下这几个链接:
1:https://www.nuomiphp.com/eplan/112325.html
2:https://www.it1352.com/1957734.html
3:https://stackoverflow.com/questions/46828047/getting-error-while-npm-install-request-to-https-registry-npmjs-org-axios-fa
第3个链接,别人报的错如下,和你的很像,答案是说关闭代理后就行了。