github-action-markdown-link-check
github-action-markdown-link-check copied to clipboard
Unable to verify link - ESOCKETTIMEDOUT
We are trying to verify the https://www.st.com/en/evaluation-tools/nucleo-f429zi.html link, but it seems to fail with:
[✖] https://www.st.com/en/evaluation-tools/nucleo-f429zi.html → Status: 0 Error: ESOCKETTIMEDOUT
at ClientRequest.<anonymous> (/usr/local/lib/node_modules/markdown-link-check/node_modules/request/request.js:816:19)
at Object.onceWrapper (node:events:627:28)
at ClientRequest.emit (node:events:513:28)
at TLSSocket.emitRequestTimeout (node:_http_client:848:9)
at Object.onceWrapper (node:events:627:28)
at TLSSocket.emit (node:events:525:35)
at Socket._onTimeout (node:net:570:8)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
code: 'ESOCKETTIMEDOUT',
connect: false
}
We tried https://github.com/tcort/markdown-link-check/issues/201#issuecomment-1110242146, but it did not work. This is our mlc_config.json file:
{
"httpHeaders": [
{
"urls": ["https://www.st.com/"],
"headers": {
"Accept": "*/*"
}
}
]
}
We found out that locally (Postman) the website reports an error if the Accept header is not set. This action works without any config file locally.
@alexandruradovici Can you check this again with v1.0.15? I have no solutions right now.
I have stopped working on this action. Please try https://github.com/UmbrellaDocs/linkspector and https://github.com/UmbrellaDocs/action-linkspector instead.