Open tomsoderlund opened 6 years ago
Hmm, unfortunately I haven't used the callback version of these methods at all; they're all bluebird Promises and wrapped using Promise.nodeify() and we just use the native Promise version. See: http://bluebirdjs.com/docs/api/ascallback.html - maybe that documentation about how to handle errors will be helpful? I do know that a lot of times "promisify" or "nodeify" methods don't always work as expected.
I'm using
html-metadata
to parse a list of hostnames:However, when host does not respond, I get this error:
Please note that this happens before my
htmlMetadata
callback is triggered.I've tried wrapping my code in
try/catch
but it doesn't help, I guess it's because it's async and the error is happening in a different thread.Any tips?