Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with empty reply from server #162

Closed
sergeyklay opened this issue Nov 14, 2022 · 2 comments
Closed

Issue with empty reply from server #162

sergeyklay opened this issue Nov 14, 2022 · 2 comments
Labels
markdown-link-check Related to the underlying markdown-link-check library

Comments

@sergeyklay
Copy link

If we do curl https://www.zus.pl, we would get the body of the document.

However, github-action-markdown-link-check relies on headers, but no headers returned:

>>> curl -I https://www.zus.pl
curl: (52) Empty reply from server

I'd like to be able to check the status code by sending a request to get the body of the document.

Related issue: sobolevbel/jdg#110

@gaurav-nelson gaurav-nelson added the markdown-link-check Related to the underlying markdown-link-check library label Nov 18, 2022
@gaurav-nelson
Copy link
Owner

Thank you @sergeyklay for creating the issue. However, I think this issue is related to the underlying library markdown-link-check and not this GitHub action. I'm closing this issue, can you please create an issue at https://github.com/tcort/markdown-link-check. Cheers!

@sergeyklay
Copy link
Author

@gaurav-nelson I'm not sure that's true. Easy replacement

-    - uses: gaurav-nelson/github-action-markdown-link-check@v1
-       with:
-         use-quiet-mode: 'no'
-         use-verbose-mode: 'yes'
-         config-file: '.github/workflows/markdown_link_check_config.json'

+    - name: install markdown-link-check
+       run: npm i -g markdown-link-check
+
+     - name: run link check
+       run: >-
+         find .
+         -name '*.md'
+         -not -path './node_modules/*'
+         -exec markdown-link-check '{}'
+         --config .github/workflows/markdown_link_check_config.json -v ';'

Solving this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
markdown-link-check Related to the underlying markdown-link-check library
Projects
None yet
Development

No branches or pull requests

2 participants