Coder Social home page Coder Social logo

Comments (4)

jshemas avatar jshemas commented on June 23, 2024

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.

jshemas avatar jshemas commented on June 23, 2024

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.

jshemas avatar jshemas commented on June 23, 2024

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.

jshemas avatar jshemas commented on June 23, 2024

Closing due to inactivity and node10 has reached it's end of life.

from opengraphscraper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.