Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: read ECONNRESET #4

Closed
quo91 opened this issue Jan 16, 2019 · 1 comment
Closed

Error: read ECONNRESET #4

quo91 opened this issue Jan 16, 2019 · 1 comment

Comments

@quo91
Copy link

quo91 commented Jan 16, 2019

So I get an error pointing me to this part of the code:

function httpGet(url){
  var response = request(
	'GET',
	url, (err, res, body) => {
		if(err)
		{
			return console.dir(err);
		}
	});
	return response.body;
}

The error says this:
C:\Users\CP\Desktop\BitBot\node_modules\sync-rpc\lib\index.js:130
throw new Error(
^

Error: nodeNC failed:

events.js:183
throw er; // Unhandled 'error' event
^

Error: read ECONNRESET
at TCP.onread (net.js:622:25)

at sendMessage (C:\Users\CP\Desktop\BitBot\node_modules\sync-rpc\lib\index.js:130:13)
at C:\Users\CP\Desktop\BitBot\node_modules\sync-rpc\lib\index.js:159:25
at request (C:\Users\CP\Desktop\BitBot\node_modules\sync-request\lib\index.js:28:15)
at httpGet (C:\Users\CP\Desktop\BitBot\test.js:229:27)
at GetPrice (C:\Users\CP\Desktop\BitBot\test.js:197:25)
at Request.get [as _callback] (C:\Users\CP\Desktop\BitBot\test.js:178:21)
at Request.self.callback (C:\Users\CP\Desktop\BitBot\node_modules\request\request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (C:\Users\CP\Desktop\BitBot\node_modules\request\request.js:1161:10)
@ForbesLindesay
Copy link
Owner

This looks like a duplicate of #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants