Comments (4)
Using your code example I am unable to reproduce the problem. I'm using Node v10.16.3
and here are my resultes:
{ ogDescription:
'Node.js scraper module for Open Graph and Twitter Card info',
ogTitle: 'open-graph-scraper',
ogUrl: 'https://www.npmjs.com/package/open-graph-scraper',
ogSiteName: 'npm',
twitterCard: 'summary',
twitterUrl: 'https://www.npmjs.com/package/open-graph-scraper',
twitterTitle: 'npm: open-graph-scraper',
twitterDescription:
'Node.js scraper module for Open Graph and Twitter Card info',
ogImage:
{ url:
'https://static.npmjs.com/338e4905a2684ca96e08c7780fc68412.png',
width: null,
height: null,
type: 'png' },
ogDate: '2020-06-23T23:52:25.488Z',
requestUrl: 'https://www.npmjs.com/package/open-graph-scraper',
success: true }
What operating system are you running this on? Do you see this with other websites?
Can you try running this with [email protected]
? I added a extra check here fe499dd but I don't think that is the issue.
from opengraphscraper.
I got this error when messing with https://www.npmjs.com/package/proxy-agent
, is your app using a proxy agent?
result: { success: false,
requestUrl: 'https://www.npmjs.com/package/open-graph-scraper',
error: 'Cannot read property \'startsWith\' of undefined',
errorDetails:
{ RequestError: Cannot read property 'startsWith' of undefined
at PromisableRequest._makeRequest (C:\openGraphScraper\node_modules\got\dist\source\core\index.js:1010:19)
at Request (C:\openGraphScraper\node_modules\got\dist\source\core\index.js:270:28)
at urlToOptions (internal/url.js:1259:28)
at Object.request (https.js:279:15)
at Object.<anonymous> (C:\openGraphScraper\node_modules\agent-base\patch-core.js:25:22)
at C:\openGraphScraper\node_modules\socks-proxy-agent\node_modules\agent-base\patch-core.js:23:20
at PromisableRequest._makeRequest (C:\openGraphScraper\node_modules\got\dist\source\core\index.js:982:43)
at Request (C:\openGraphScraper\node_modules\got\dist\source\core\index.js:270:28)
at process._tickCallback (internal/process/next_tick.js:68:7) name: 'RequestError', code: undefined, timings: undefined } }
from opengraphscraper.
This might also be a issue with got
, it only supports node 10.19.0
and up.
https://github.com/sindresorhus/got/blob/master/package.json#L10
from opengraphscraper.
Closing due to inactivity and node10 has reached it's end of life.
from opengraphscraper.
Related Issues (20)
- Pass through validator options in oGS options HOT 1
- Timeout for some urls
- Twitter doesn't response image etc HOT 1
- Strange fallback behavior with multiple title tags. HOT 1
- Page not found with any user agent HOT 2
- is not working in tiktok HOT 4
- Page not found with fake user-agent and without user-agent HOT 3
- Angular usage. HOT 2
- open-graph-scraper doesn't return response body with the use of proxy HOT 3
- How to use this with Promise.all? HOT 2
- Some url should not be parsed HOT 2
- how to get the web page icon? HOT 2
- Enable es modules support HOT 2
- Page not found when using User-Agent header HOT 4
- Cointelegraph RSS not scraping HOT 1
- Issue getting details for URLs with 302 Redirections - (node:26923) UnhandledPromiseRejectionWarning: Unhandled promise rejection HOT 2
- download limit exceeded, is there a way to not request the html response as well? onlyGetOpenGraphInfo not working HOT 6
- Option "headers" does not work in typescript HOT 2
- v5 does not have right types HOT 2
- Module not found: Can't resolve 'http2' HOT 1
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.