question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: write EPROTO

See original GitHub issue

I’m using

ip-192-168-1-52:api loretoparisi$ node --version
v12.13.1
ip-192-168-1-52:api loretoparisi$ npm --version
6.12.1
Error: write EPROTO 4450674112:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:87:16) {
  errno: 'EPROTO',
  code: 'EPROTO',
  syscall: 'write'
}
 [Wed Nov 20 2019 17:40:30 GMT+0100 (Central European Standard Time)] RequestGetP error:{
  "errno": "EPROTO",
  "code": "EPROTO",
  "syscall": "write"
}
Error: write EPROTO 4450674112:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:87:16)
Error: write EPROTO 4450674112:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:87:16)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
9wcommented, Dec 26, 2019

I had the same problem and solved it by using agent option

agent: new Agent({ rejectUnauthorized: false })

Agent is from https module.

import { Agent } from 'https';

I hope it works for you, too.

0reactions
Nicolaschinccommented, Aug 25, 2021

I have the same problem like this. but I don’t know the reason why it works?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why would I be getting `Error: write EPROTO` when making ...
When making a request to the server I'm getting the following error: { [Error: write EPROTO] code: 'EPROTO', errno: 'EPROTO', ...
Read more >
HTTP/HTTPS client requests throwing EPROTO #3692 - GitHub
Error : write EPROTO at Object.exports._errnoException (util.js:874:11) at exports._exceptionWithHostPort (util.js:897:20) at WriteWrap.
Read more >
write EPROTO error:100000f7:SSL routines ...
The Error: write EPROTO error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER occurs when you issue a POST request using `https` as the protocol ...
Read more >
Error: write EPROTO - eBay Developer Forums
Hi Team. Ebay getOrder api failing and giving below error, this started happening from 30th March, before that all was working good.
Read more >
write EPROTO error:100000f7:SSL routines ... - YouTube
How to solve Could not get response Error : write EPROTO error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER in postman is ...
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