Coder Social home page Coder Social logo

TypeError about node-rssparser HOT 8 CLOSED

tk120404 avatar tk120404 commented on August 23, 2024
TypeError

from node-rssparser.

Comments (8)

tk120404 avatar tk120404 commented on August 23, 2024

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.

aidvu avatar aidvu commented on August 23, 2024

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.

samuelgilman avatar samuelgilman commented on August 23, 2024

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.

samuelgilman avatar samuelgilman commented on August 23, 2024

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.

aidvu avatar aidvu commented on August 23, 2024

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.

tk120404 avatar tk120404 commented on August 23, 2024

It parses all the urls properly mentioned in the other issues as well

from node-rssparser.

samuelgilman avatar samuelgilman commented on August 23, 2024

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.

tk120404 avatar tk120404 commented on August 23, 2024

no activity. closing the issue

from node-rssparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.