Why Would I Be Getting `Error: Write Eproto` When Making an Https Request in an Electron App?
I've Been Pounding My Head Against the Wall for Days on This So I Am Turning to the Smart Folks at Stackoverflow to Help. Here's the Deal: System Details Node...
I've been pounding my head against the wall for days on this so I am turning to the smart folks at Stackoverflow to help. Here's the deal:
System Details
- Node Version (can't be changed due to Electron dependencies): v4.1.1
- Electron Version: v0.34.3
- OS Version: Mac OSX Yosemite 10.10.5 (14F1021)
Issue Description
I'm building an Electron app that has to communicate with my company's application server. The server connection has to go over HTTPS. I'm using Node's built-in https module. When making a request to the server I'm getting the following error:
{ [Error: write EPROTO]
code: 'EPROTO',
errno: 'EPROTO',
syscall: 'write',
address: undefined }
I've done a ton of Googling on this and most everything I've found points to proxies but I'm not using a proxy. I've tried the following:
- Setting
rejectUnauthorized: falsein the options hash - Modifying the
secureProtocoloption (no results) - Attempting to set the
--tls-cipher-list(no idea what I'm doing there)
I can make the request over curl without issue. Unfortunately, I can't post the actual URL I'm making requests to.