fent / hook.io-feedsub Goto Github PK
View Code? Open in Web Editor NEWhook.io bindings for RSS/Atom/JSON feeds
License: MIT License
hook.io bindings for RSS/Atom/JSON feeds
License: MIT License
Hi fent! :)
I am tracking the following RSS - http://www.embersofcaerus.com/external.php?do=rss&type=newcontent§ionid=1&days=120&count=10 - which is from Vbulletin.
If I do it just with the hook.io-feed module - I get an error like below:
net.js:197
this._handle.readStop();
^
TypeError: Cannot call method 'readStop' of null
at Socket.pause (net.js:197:16)
at IncomingMessage.pause (http.js:254:15)
at FeedReader. (/home/willwh/node/hook.io-feedsub/node_modules/feedsub/lib/feedsub.js:154:19)
at /home/willwh/node/hook.io-feedsub/node_modules/feedsub/lib/feedsub.js:10:62
at FeedReader. (/home/willwh/node/hook.io-feedsub/node_modules/feedsub/lib/feedsub.js:143:18)
at SAXStream. (/home/willwh/node/hook.io-feedsub/node_modules/feedsub/lib/feedsub.js:10:62)
at SAXStream.g (events.js:154:14)
at SAXStream.emit (events.js:67:17)
at /home/willwh/node/hook.io-feedsub/node_modules/feedsub/node_modules/feedme/lib/feedme.js:122:23
at SAXStream. (/home/willwh/node/hook.io-feedsub/node_modules/feedsub/node_modules/feedme/lib/feedme.js:68:14)
I am getting double emits from kohai (irc bot) - but I think that is just forever restarting my hookio-feed.
Do you have any ideas what could be causing this?
Hi Fent, I'm using this inside a nodejs irc bot called kohai.
https://github.com/willwh/kohai
It has a simple listener, here: https://github.com/willwh/kohai/blob/master/lib/listeners/feedsub.js
I am seeing 2 emits from feedsub when reading this feed:
{
"feeds": [
{
"name": "emberblog",
"url": "http://www.embersofcaerus.com/external.php",
"interval": 1,
"emitOnStart": false
}
],
}
So the bot is printing each entry to channel twice.
Any ideas? :)
I am definitely running hookio-feedsub v0.1.2 and feedsub v0.0.9
Hi Fent,
I am trying to roll this in to kohai (https://github.com/nodejitsu/kohai)
hook.io-feedsub emits to console just fine on startup of the bot, although, I think when it goes to check the feed again, it's dieing for me:
https://gist.github.com/41f36c11d56b6ed69e76
Can you offer any assistance? Would love to get this rolled in to kohai :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.