alshedivat / al-folio

A beautiful, simple, clean, and responsive Jekyll theme for academics
https://alshedivat.github.io/al-folio/
MIT License
11.08k stars 11.18k forks source link

Actions broken-link.yml fails: too many redirects #2363

Closed raffaem closed 6 months ago

raffaem commented 6 months ago

Have you checked that your issue isn't already filed?

Bug description

Actions broken-link.yml fails

How to reproduce the bug

Put a link to https://www.kth.se/profile/andbr in some post. For example, I put it here.

Error messages and logs

[ERR] https://www.kth.se/profile/andbr | Failed: Too many redirects: error following redirect for url (https://www.kth.se/files/auth/silent/bounce?nextUrl=https%3A%2F%2Fwww.kth.se%2Fprofile%2Fandbr): too many redirects

See here for full log.

What operating system are you using?

Linux

Where are you seeing the problem on?

Deployed site

More info

No response

george-gca commented 6 months ago

As you can see in the error message, it states:

Failed: Too many redirects: error following redirect for url (https://www.kth.se/files/auth/silent/bounce?nextUrl=https%3A%2F%2Fwww.kth.se%2Fprofile%2Fandbr): too many redirects

Your page for some reason redirects too many times. The broken links workflow uses lychee-action, which in turn uses lychee to check for broken links. By default it allows up to 5 redirects, as can be seen in lychee docs. Possible solutions would be:

  1. add max-redirects param in your workflow, increasing this number above 5
  2. add another --exclude-path with the path to your page that is causing trouble
  3. disable this action