Comments (8)
Not sure how you are getting these errors, but these seems to be working fine. Can you run the test.js with this url and let me know what error are you getting? Do share the OS and node version details
from node-rssparser.
Samuel, try doing a npm update. There were some changes to lib2xml recently, and if you have older versions of dependencies, that might have broken it.
from node-rssparser.
aidvu, I'm assuming 0.0.7 is the latest. If not then I'm totall wrong. Before submitting these issues I've udpated everything just to make sure.
from node-rssparser.
tk120404, most recent Mavericks and Ubuntu. node v0.11.13 on both machines. I will run the test tomorrow and see if anything fails.
Basically you need to get this error:
obj.summary = val.comments[0] != null ? val.comments[0] : '';
TypeError: Cannot read property '0' of undefined
In order to trigger the dbl callbacks. I might create a fake endpoint so it stays around because these errors come from apis that usually work, and sometimes do not because of bad xml or what not.
from node-rssparser.
Ubuntu 14.04, nodejs v0.10.28, npm v1.4.9
npm install rssparser
[email protected] node_modules/rssparser
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Parses above feed properly.
from node-rssparser.
It parses all the urls properly mentioned in the other issues as well
from node-rssparser.
npm tests are all good.
You cannot reproduce the errors because the data from the feeds changes. When I get these errors I will capture the xml output and make fake endpoints. I just have to follow my logs and capture the response. From what I've seen it triggers the dbl cb on a specific error which is bad xml but it still goes through and therefore the callback is called twice once with the err and once with the data.
Will update tomorrow.
from node-rssparser.
no activity. closing the issue
from node-rssparser.
Related Issues (20)
- Using the parser in a for loop. HOT 1
- TypeError: Cannot read property '0' of undefined HOT 2
- dbl callbacks HOT 2
- TypeError HOT 2
- Undefined value HOT 1
- Encoding issue with dependency "request" HOT 1
- non-latin characters HOT 9
- Segmentation fault with [email protected] HOT 3
- Push to npm HOT 3
- Fault tolerant parsing of xml. HOT 1
- parseString split can cost performance hit? HOT 1
- Duplicate callback invocation on error. HOT 1
- Number of items parsed HOT 1
- Doesn't work with node 4.x HOT 3
- Fowlers atom feed cant be processed
- Build issue HOT 1
- Module not found: Can't resolve '../build/Debug/iconv.node' HOT 1
- TypeError: First argument must be a string or Buffer HOT 1
- How to convert an object into an XML rss feed?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-rssparser.