alirawashdeh / rss-reader-alexa

An Alexa Skill that fetches an RSS feed and reads out headlines
Other
14 stars 7 forks source link

"parser.parseURL is not a function" error occurs when triggered #5

Closed tscholze closed 6 years ago

tscholze commented 6 years ago

Hi, I'm using your great repository as an "entry" point into a Alexa skill development project type of thing.

But I always get a. parser.parseURL is not a function error in Cloud Watch if I try your code with the Alexa Skill Test Page in the Amazon developer center.

I'm using NodeJS 6.10 and the lambda is deployed to the Ireland region and used from Germany.

Does you or anybody else has an idea why this error occurs?

Thanks!

tscholze commented 6 years ago

Solution The repository's code is a little bit outdated. The current version of rss-parser has a slidely different call syntax. For more information see: rss-parser npm.js page

anshulsinha1101 commented 5 years ago

@tscholze could you please help me how to implement rss-parser in Angular 4+ projects

anshulsinha1101 commented 5 years ago

'const CORS_PROXY = "https://cors-anywhere.herokuapp.com/" let RSSParser = require('rss-parser/dist/rss-parser.min.js') let parser = new RSSParser(); parser.parseURL(CORS_PROXY + 'https://www.reddit.com/.rss', function (err, feed) { console.log(feed);

})`

I am using the following code and i am getting Error TypeError: RSSParser is not a constructor

tscholze commented 5 years ago

I'm afraid. I cannot. I have the same code, just instead of let I used var. I'm not a JavaScript-guy. sorry.

robbmueller commented 4 years ago

@tscholze did you fix the rss-parser call? I am currently stuck at the same error.

tscholze commented 4 years ago

@robbmueller I used another version. Please see my comment above: https://github.com/alirawashdeh/rss-reader-alexa/issues/5#issuecomment-362913311

tscholze commented 4 years ago

@anshulsinha1101 sorry for not answering you. I have no deep knowledge in JS. I hope you got it working!

robbmueller commented 4 years ago

For the record. It worked with rss-parser@2.12.1