-
Notifications
You must be signed in to change notification settings - Fork 120
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
403 for github.com because it blocks requests without --compressed
curl flag
#201
Comments
As a workaround, you can add the following to the config file: "httpHeaders": [
{
"urls": ["https://docs.github.com/"],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}
] as seen here: https://github.com/openmrs/openmrs-esm-core/pull/412/files |
Would be a good option to add the header I know this is a specific case (because GitHub requires that header) but I do not see any side effects for other cases. |
The workaround provided by @brandones works Set those accepted compression(encoding) header as default looks good to me and may be the solution 😄 |
See also github/docs#17358 |
Without the "Accept-Encoding" HTTP header GitHub blocks the requests made to "help.github.com". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - See also: * github/docs#17358 * tcort/markdown-link-check#201
Without the "Accept-Encoding" HTTP header GitHub blocks the requests made to "help.github.com". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - See also: * github/docs#17358 * tcort/markdown-link-check#201
* Add mega linter * Add workflow for mega linter * change the mega linter check * Remove trailing spaces * Disable HTML and Docker file linters * Disable JSON linters * fix reviewers.yml * Disable cspell Small fixes the mega linter did * Disable cspell errors to warnings for now * push linter fixes * fix 403 issues with links from GH and other sites. Workaround: tcort/markdown-link-check#201 * fix links * Remove internal links * Delete markdownlint.yml * Fix linting for mkdocs.yml * Disable old linter * Fix broken links * Fix broken links * Remove mega linter * Fix broken links * Fix broken links * fix broken links * Remove uneeded spell checks from the cspell config * Keep fixing cspell stopped at: overfitting * Keep fixing cspell stopped at: overfitting * Update package lock. * fix documentation * ignore failing working link * fix spell * Add 302 as alive status code * Upgrade mega linter to version 6 * Update to version 6 update to version 6 of mega linter * Update megalinter * remove blank line * Fix file * change root user for Dockerfile * revert * Change the use of root user in the dockerfile * ignore trivy error for docker root user * remove unneeded spaces * Update .github/workflows/mega-linter.yml Co-authored-by: Tomi Paananen <[email protected]> * Update docs/continuous-delivery/secrets-management/README.md Co-authored-by: Tomi Paananen <[email protected]> * Update docs/continuous-delivery/secrets-management/README.md Co-authored-by: Tomi Paananen <[email protected]> * Update docs/agile-development/basics/Ceremonies/README.md Co-authored-by: Tomi Paananen <[email protected]> * Update .projector/workItemTemplates/kubernetes-at-the-edge.yml Co-authored-by: Tomi Paananen <[email protected]> * Update .projector/workItemTemplates/kubernetes-at-the-edge.yml Co-authored-by: Tomi Paananen <[email protected]> * Update docs/observability/pillars/dashboard.md Co-authored-by: Tomi Paananen <[email protected]> Co-authored-by: Tomi Paananen <[email protected]>
* Add linting steps to doc-automation workflow * Move changes to lint.yml * Some improvements * Fix bug * Some enhancements * Fix bug * Fix some links, a few typos and also linting steps * Fix intel-extension links and some others * Fix some typos * Fix remaining typos * Fix some other links * Fix bug * Add some words to wordllist.txt * Add some other words to wordlist.txt * Fix some links and improve markdown-lin-check config * Fix bug * Temporary fix a link * Fix 4 remaining links * Fix typos * Fix typos * Fix bug * Improve spellcheck and fix misspellings * Clean wordlist.txt abit * Fix GitHub 403 errors From tcort/markdown-link-check#201 (comment) * Fix md-link-check version * Fix a link Co-authored-by: Mark Saroufim <[email protected]>
As per tcort/markdown-link-check#201 (comment) Signed-off-by: Thane Thomson <[email protected]>
As per tcort/markdown-link-check#201 (comment) Signed-off-by: Thane Thomson <[email protected]>
* ci: Run Markdown link checker nightly Signed-off-by: Thane Thomson <[email protected]> * ci: Switch to Informal Systems fork of link checker Signed-off-by: Thane Thomson <[email protected]> * Update link checker config to work with GitHub As per tcort/markdown-link-check#201 (comment) Signed-off-by: Thane Thomson <[email protected]> Signed-off-by: Thane Thomson <[email protected]>
* Add linting steps to doc-automation workflow * Move changes to lint.yml * Some improvements * Fix bug * Some enhancements * Fix bug * Fix some links, a few typos and also linting steps * Fix intel-extension links and some others * Fix some typos * Fix remaining typos * Fix some other links * Fix bug * Add some words to wordllist.txt * Add some other words to wordlist.txt * Fix some links and improve markdown-lin-check config * Fix bug * Temporary fix a link * Fix 4 remaining links * Fix typos * Fix typos * Fix bug * Improve spellcheck and fix misspellings * Clean wordlist.txt abit * Fix GitHub 403 errors From tcort/markdown-link-check#201 (comment) * Fix md-link-check version * Fix a link Co-authored-by: Mark Saroufim <[email protected]>
* Add linting steps to doc-automation workflow * Move changes to lint.yml * Some improvements * Fix bug * Some enhancements * Fix bug * Fix some links, a few typos and also linting steps * Fix intel-extension links and some others * Fix some typos * Fix remaining typos * Fix some other links * Fix bug * Add some words to wordllist.txt * Add some other words to wordlist.txt * Fix some links and improve markdown-lin-check config * Fix bug * Temporary fix a link * Fix 4 remaining links * Fix typos * Fix typos * Fix bug * Improve spellcheck and fix misspellings * Clean wordlist.txt abit * Fix GitHub 403 errors From tcort/markdown-link-check#201 (comment) * Fix md-link-check version * Fix a link Co-authored-by: Mark Saroufim <[email protected]>
see more detail in tcort/markdown-link-check#201 and we find can solve this by adding `httpHeaders` to fix it
* Remove outdated instructions following: https://github.com/returntocorp/ocaml-tree-sitter-languages/blob/main/doc/adding-a-language.md * Use compression headers for markdown link checks when querying GitHub sites per: tcort/markdown-link-check#201
- No more reference community.egi.eu - Fix black documentation link - Fix markdown-link-check errors with docs.github.com. See tcort/markdown-link-check#201. - Add markdownlint config file - Prepare for running workflows only on PR
* Remove outdated instructions following: https://github.com/returntocorp/ocaml-tree-sitter-languages/blob/main/doc/adding-a-language.md * Use compression headers for markdown link checks when querying GitHub sites per: tcort/markdown-link-check#201
* Remove outdated instructions following: https://github.com/returntocorp/ocaml-tree-sitter-languages/blob/main/doc/adding-a-language.md * Use compression headers for markdown link checks when querying GitHub sites per: tcort/markdown-link-check#201
…ory and rename it to scripts ✅ Send "Accept-Encoding" HTTP header when checking "help.github.com" Without the "Accept-Encoding" HTTP header GitHub blocks the requests made to "help.github.com". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - See also: * github/docs#17358 * tcort/markdown-link-check#201 See alrra@a3433f8 See alrra@4dc75ad See alrra@4ab15e9
…ory and rename it to scripts ✅ Send "Accept-Encoding" HTTP header when checking "help.github.com" Without the "Accept-Encoding" HTTP header GitHub blocks the requests made to "help.github.com". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - See also: * github/docs#17358 * tcort/markdown-link-check#201 See alrra@a3433f8 See alrra@4dc75ad See alrra@4ab15e9
The original issue that github.com was returning an HTTP 403 forbidden is no longer occurring. The debug steps to reproduce from the original post are now succeeding instead of failing:
So it seems that the workaround described in #201 (comment)
is no longer necessary. Would anybody like to cross-check? I implemented the workaround 2 years ago. Now, due to the fact that |
Local curl:
Curl with --compressed:
The text was updated successfully, but these errors were encountered: