-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Big GIFs can cause application crash #11
Comments
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.
The text was updated successfully, but these errors were encountered: