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 issue

I 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:open
  • Created a year ago
  • Reactions:8
  • Comments:10

github_iconTop GitHub Comments

4reactions
fabioselau077commented, Jul 31, 2022

same here, how fix?

1reaction
Pudochucommented, Nov 29, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found