dbpedia-spotlight/DBpediaSpotlight.js

error handling for post_req

matthiasdg opened this issue · 0 comments

Right now it seems spotlight.sztaki.hu is down; scripts using this library crash with an ETIMEDOUT for 193.225.89.3 + one of the listed ports depending on the language (not very clear where it's coming from like this imho)
Adding a post_req.on('error',...) would fix this, cf. the res.on('error',...) within the request.
Can provide a pull request if preferred.