Open lorenzos opened 9 years ago
I had the same issue, seems like it's to do with large requests. I set a request size limit which seems to have fixed the issue for now:
new MetaInspector(param, { limit: 3000000 } );
Why would you crawl inspect images? This is for meta information about websites.
From the project description:
"You give it an URL, and it lets you easily get its title, links, images, description, keywords, meta tags...."
It should not crash when given a URL, even if it's given a URL to an image. The Ruby MetaInspector gem also returns image resolution, so a future feature would be to port that functionality over as well.
Here's the source code so PR maybe?
I've run into similar issues with non-HTML URIs causing errors. Specifically, passing non-HTML body data into the cheerio module can cause call stack exceptions. I've submitted PR #25 to help address this.
I don't know if all big files, or only specific ones, but this:
Crashes the application with:
If this is hard to solve, I will be glad to know if there is some workaround in order to, at least, keep my application running.