Checks carried out by
https://github.com/corona-warn-app/cwa-documentation/blob/master/.github/workflows/checks.yml
on pull_request
npm run-script checklinks
is failing at
[✖] https://www.bundesregierung.de/breg-de/bundesregierung/bundespresseamt → Status: 503
[✖] https://www.bundesregierung.de/breg-en/federal-government/federal-press-office → Status: 503
See log https://github.com/corona-warn-app/cwa-documentation/actions/runs/624187503.
According to https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
503means Service Unavailable
Both pages
are displayed without error when manually accessed via Google Chrome.
I suggest monitoring the situation and if the error has not cleared by tomorrow, then report the error to BPA.
I checked https://www.bundesregierung.de/ with markdown-link-check and it also fails with an http 503 error.
There is something making the whole website of the Bundesregierung incompatible with markdown-link-check.
The links to https://www.bundesregierung.de/ were not causing a problem in PR https://github.com/corona-warn-app/cwa-documentation/pull/523 from Feb 2, 2021 as shown by the log https://github.com/corona-warn-app/cwa-documentation/runs/1813934822. Something has changed in the last month to cause the check to fail.
The paragraph
The "Corona-Warn-App" logo is a registered trademark of The Press and Information Office of the Federal Government. For more information please see bundesregierung.de.
in https://github.com/corona-warn-app/cwa-documentation/blob/master/README.md
and
Das "Corona-Warn-App"-Logo ist eine registrierte Wort-/Bildmarke des Presse- und Informationsamts der Bundesregierung. Weitere Informationen finden Sie unter bundesregierung.de.
in https://github.com/corona-warn-app/cwa-documentation/blob/master/translations/README.de.md
are causing the http error 503 Service unavailable to be returned to the markdown-link-check which in turn causes the build check to fail.
I couldn't find out the reason for the failure. Both of the links work correctly when accessed manually.
If nothing is changed then all commits to this repository will continue to fail the Build (pull_request) checks in future. Unless somebody has a better idea, the Bundespresseamt (Presse- und Informationsamt der Bundesregierung) probably needs to be contacted for assistance.
@dsarkar
I found the root cause. 😄 The Bundesregierung's website has implemented additional security.
When markdown-link-check executes an https GET request to https://www.bundesregierung.de/breg-en
the site returns http status code 503 (Service Unavailable) and it returns page data starting with
<!DOCTYPE html><html><head><title>Security Check</title>

Troubleshooting
// Install LTS version from nodejs.org
// npm install --save link-check
// run the code below, for instance from file RequestTest.js with
// node RequestTest.js
//
const request = require('request');
request('http://www.bundesregierung.de/breg-en', function (error, response, body) {
console.error('error:', error); // Print the error if one occurred
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
console.log('body:', body); // Print the HTML for the Bundesregierung site
});
copy HTML test from console output to a new .html file and display in browser.
https://www.npmjs.com/package/markdown-link-check depends on
https://www.npmjs.com/package/link-check depends on
https://www.npmjs.com/package/request
@dsarkar
markdown-link-check allows disabling checks for parts of the text. I tested that this works and if you would like I can submit a PR to stop the link checking failing.
@MikeMcC399 Thanks for analysing this issue. I will check internally if your fix will be accepted.
@dsarkar
OK. I will submit a PR anyway, since I already did the work when I tested it.
If it is not acceptable, you can close it.
I have submitted PR https://github.com/corona-warn-app/cwa-documentation/pull/545 and it passed the test! 🙂