Skip to content
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

library is not working #3

Open
AndrejGajdos opened this issue Sep 3, 2019 · 1 comment
Open

library is not working #3

AndrejGajdos opened this issue Sep 3, 2019 · 1 comment

Comments

@AndrejGajdos
Copy link

AndrejGajdos commented Sep 3, 2019

If I try:

let previewLink = require('preview-link');

previewLink('https://www.google.com/').then(res => { console.log(res) }).catch(err => { console.log('error') });

I get response object:

{error: "No preview available", html: null}

@sbkwgh
Copy link
Owner

sbkwgh commented Sep 3, 2019

Hi - this is sort of the intended effect.

The Google homepage html only really has a title tag, with no useful meta or open-graph tags so there's isn't any meaningful preview that could be generated.

Open to ideas how this could be bettered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants