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

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

suricata.io marked dead with "Status: 0 Error: socket hang up" #170

Closed philrz closed 1 year ago

philrz commented 1 year ago

For the past couple nights our automation that uses this workflow has reported https://suricata.io/ as a dead link. I created a simplified mini repo https://github.com/philrz/linkcheck to reproduce this in verbose mode. The error:

=========================> MARKDOWN LINK CHECK <=========================

FILE: ./README.md
[✖] https://suricata.io/ → Status: 0 Error: socket hang up
    at connResetException (node:internal/errors:711:14)
    at TLSSocket.socketOnEnd (node:_http_client:518:23)
    at TLSSocket.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ECONNRESET'
}
[✓] https://www.brimdata.io/ → Status: 200

2 links checked.

ERROR: 1 dead links found!
[✖] https://suricata.io/ → Status: 0

=========================================================================

It's accessible in a browser, via curl, and also when I run the underlying tool https://github.com/tcort/markdown-link-check by hand.

$ markdown-link-check https://github.com/philrz/linkcheck/blob/main/README.md
...
  [✓] https://suricata.io
...
Anton-4 commented 1 year ago

I also encountered this issue for the url https://www.10xeditor.com/

gaurav-nelson commented 1 year ago

@philrz I guess since this request is coming from bot, the website is not allowing it to process. I maybe wrong. Can you try this again with v1.0.15?

philrz commented 1 year ago

Thanks @gaurav-nelson! Per your suggestion I just did a re-run while pointing specifically at gaurav-nelson/github-action-markdown-link-check@1.0.15 and it did indeed work now. Closing this issue.