Closed bb-work closed 5 years ago
I found the issue. The site is returning a statusCode of 403. index.js line 33 should be ||, not &&:
if (!response.statusCode && response.statusCode !== 200) { return dfd.reject({Error: 'response code ' + response.statusCode}) }
Thanks for catching this, sorry for being slow. Will patch asap.
Running into this as well. Would be great if this were merged to correct this https://github.com/LevelNewsOrg/url-metadata/pull/4
Merged and updated on npm: https://www.npmjs.com/package/url-metadata
I'm using url-metadata to retrieve metadata about URLs that are gotten from another search. Sometimes, neither my success nor failure functions are called, and I don't understand why.
Example "bad" url: http://sartma.com/art_13825.html