AxiosError: write EPROTO 1C3B0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:355:
See original GitHub issueI get this error when I try to send a request via proxy with Axios. I’ve searched the Internet, but I haven’t been able to reach any results.
const axios = require('axios')
axios({
url: 'http://medal.tv',
method:'GET',
proxy: {
protocol: 'http',
host: 'xxx',
port: 3000,
auth: { username: 'xxx', password: 'xxx' }
}
}).then(e => console.log(e.data)).catch(e => console.log(e))
Issue Analytics
- State:
- Created a year ago
- Reactions:8
- Comments:10
Top Results From Across the Web
syscall: 'write', code: 'EPROTO', errno: -4046, or AxiosError
c:355 : I am running the code on Localhost so my connection to the proxy server is not https. Here is the code...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
same here, how fix?
Solution: You only get this error when you change a supported proxy from “http” to “https”. So if you wrote “https://” change it to “http://”. Or vice versa.