TypeError: self._handle.connect is not a function
See original GitHub issueSomething went wrong on net
module binding when using why-is-node-running
with request+bluebird combo.
I got this error:
net.js:822
err = self._handle.connect(req, address, port);
^
TypeError: self._handle.connect is not a function
at connect (net.js:822:26)
at net.js:984:7
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)
I tried to find the reason why it is fails, but i could’t find.
This is test code which i used.
'use strict';
/**
* Module dependencies.
*/
const why = require('why-is-node-running');
const
Promise = require('bluebird'),
request = require('request');
const
feeds = [
'http://www.gojobs.go.kr/employ/rss.asp',
'https://github.com/mooyoul.atom',
'https://github.com/Flexget/Flexget/commits/develop.atom'
];
const fetch = (url) => {
return new Promise((resolve, reject) => {
request({
method: 'GET',
url: url
}, (e, res, body) => {
if (e) {
return reject(e);
}
resolve(body);
});
});
};
Promise.map(feeds, (feed, index) => {
console.log('fetching feed index %d: %s', index, feed);
return fetch(feed);
});
Issue Analytics
- State:
- Created 7 years ago
- Reactions:11
- Comments:9 (2 by maintainers)
Top Results From Across the Web
How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript error TypeError: "x" is not a function occurs when there is an attempt to call a function on a value or...
Read more >TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >JavaScript error: "is not a function" - Stack Overflow
It was attempted to call a value like a function, but the value is not actually a function. Some code expects you to...
Read more >Uncaught TypeError: self.on is not a function when trying to ...
I get an error when trying to connect to ES on AWS. Using this code supplied in the readme: var es = require('elasticsearch')....
Read more >Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError - Some selector is not a function - jQuery is not a function - owlCarousel...
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 FreeTop 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
Top GitHub Comments
I’ll try to find some time over the weekend to fix this. Thanks for reporting it 👍
I ran into this issue too, but https://github.com/myndzi/wtfnode was able to work.