gaurav-nelson / github-action-markdown-link-check

Check all links in markdown files if they are alive or dead. 🔗✔️
MIT License
399 stars 77 forks source link

Unable to verify link - ESOCKETTIMEDOUT #173

Open alexandruradovici opened 1 year ago

alexandruradovici commented 1 year ago

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.

gaurav-nelson commented 1 year ago

@alexandruradovici Can you check this again with v1.0.15? I have no solutions right now.

gaurav-nelson commented 1 month ago

I have stopped working on this action. Please try https://github.com/UmbrellaDocs/linkspector and https://github.com/UmbrellaDocs/action-linkspector instead.