Comments (3)
Neat bug! Thank you for the example URL. I'm not sure what is the best way of fixing this since request
dose not have a "max page size" option build in.
I did however find this SO post: http://stackoverflow.com/questions/25080121/node-js-and-request-limiting-the-file-size-of-downloaded-file
I'll look into this more, but if you want to make a PR in the mean time, that would be awesome.
from opengraphscraper.
I've had this issue before with open-graph-scraper. I think its to do with the fact that its trying to convert a binary file into a DOM via cheerio.
I get round this by filtering the file types of what I pass to open-graph-scraper.
from opengraphscraper.
This has been fixed in version 2.4.2
- We now make sure it's a html page before trying to get open graph info from it.
from opengraphscraper.
Related Issues (20)
- Module not found: Can't resolve 'http2' HOT 1
- reuslt.twitterImage is improperly typed as string | undefined HOT 3
- open-graph-scraper > 4.11.1 jest and supertest segfault HOT 3
- Cannot find module './lib/openGraphScraper' or its corresponding type declarations HOT 3
- TS Error: Cannot find module './lib/openGraphScraper' HOT 3
- Something is not right with the types HOT 4
- Type error in index.ts HOT 1
- Missing got dependency HOT 2
- Types Errors HOT 6
- Can the library keyv be replaced with something else? HOT 3
- fetchOptions type HOT 1
- Regression: Fetching `https://facebook.com` yields no image HOT 5
- Lower Node 18 requirement HOT 1
- Problem with specifying the html option in TypeScript HOT 1
- Why the error with a generic 400/500 error message? HOT 2
- Twitter / X.com Open graph tags not working anymore HOT 4
- It is better to export SuccessResult and ErrorResult types HOT 2
- Fail to detect charset from certain ShiftJIS page HOT 10
- Add Support for Edge Functions HOT 2
- Support title & description fields HOT 5
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 opengraphscraper.