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 use this link checker on multiple websites and I found those two false positives. I don't know why they fail yet. The second one has a redirection though.
This one is super fascinating! When I try to make a plan request to that endpoint with node.js, I get this error:
FetchError: request to https://www.tc.gc.ca/eng/civilaviation/standards/commerce-menu.htm/ failed, reason: unable to verify the first certificate
at ClientRequest.<anonymous> (/Users/beckwith/Code/linkinator/node_modules/node-fetch/lib/index.js:1455:11)
at ClientRequest.emit (events.js:315:20)
at TLSSocket.socketErrorListener (_http_client.js:461:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:100:8)
at emitErrorCloseNT (internal/streams/destroy.js:68:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
type: 'system',
errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
config: {
method: 'HEAD',
url: 'https://www.tc.gc.ca/eng/civilaviation/standards/commerce-menu.htm/',
responseType: 'stream',
validateStatus: [Function: validateStatus],
params: [Object: null prototype] {},
paramsSerializer: [Function: paramsSerializer],
headers: {}
}
}
It looks like that TLS Certificate was signed with an intermediary authority that isn't by default trusted by node.js. I am not entirely sure what the right answer is going to be, but that's fascinating.
This one issues an HTTP 403, but also returns a response body? Linkinator will only respond success for 2xx response codes, so I don't think I'm going to do anything here.
JustinBeckwith
changed the title
False positives
Handle intermediary certificate failures
May 4, 2020
I use this link checker on multiple websites and I found those two false positives. I don't know why they fail yet. The second one has a redirection though.
https://www.tc.gc.ca/eng/civilaviation/standards/commerce-menu.htm/
https://www.cmhc-schl.gc.ca/odpub/pdf/60946.pdf
The text was updated successfully, but these errors were encountered: