You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just started using your library and noticed that in check-link.js you access err.statusCode.
But this property is undefined when I use the library. However in can find the statuscode at err.response.statusCode
return fetchHEAD()
.catch((/** @type {HTTPError} */ err) => {
console.warn('HEAD error', err)
// TODO: if HEAD results in a `got.HTTPError`, are there status codes where
// we can bypass the GET request?
return fetchGET()
})
.catch((/** @type {Response} */ err) => {
console.warn('GET error', err)
return /** @type {const} */ ({
status: 'dead',
statusCode: err.statusCode
})
})
The text was updated successfully, but these errors were encountered:
I just started using your library and noticed that in check-link.js you access err.statusCode.
But this property is undefined when I use the library. However in can find the statuscode at err.response.statusCode
The text was updated successfully, but these errors were encountered: