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

socket hang up failure trying to check link to netlify’s own badge image #568

Open
brunchboy opened this issue Apr 24, 2022 · 2 comments

Comments

@brunchboy
Copy link

I opened a support thread with Netlify because my builds have stopped working, the checklinks plugin is failing with a “socket hang up” trying to check an image hosted by netlify.com itself. Here is the deploy log.

They said that I should reach out to the plugin author, so I am doing that, is this something that can be fixed?

@Munter
Copy link
Owner

Munter commented Apr 26, 2022

@brunchboy You should be able to use one of these two configs, depending in your desired usage:

  # from ever attempting to execute them.
  # skipPatterns is an array of strings you can match against failing reports
  skipPatterns = []

  # You can mark some check as todo, which will execute the check, but allow failures.
  # todoPatterns is an array of strings you can match against failing reports
  todoPatterns = []

The patterns in here are substring matches, so a configuration addition like this one should make the link checker skip the check (unless I messed up a missing quote escape for toml):

  skipPatterns = ['class="netlify-badge"']

@brunchboy
Copy link
Author

Thanks for the response. Digging into this surprised me that I had left the plugin configured to not check external links; that is the main thing I am trying to protect myself against, as companies are terribly bad at leaving content up on the web. Trying to turn that on, my builds were taking too long and netlify was killing them. I tried running one locally overnight using the netlify-cli, and it was still stuck after eight hours. So I have switched from this plugin to using htmltest, which I was already using in other projects, because it performs better for my external link checking needs, even though it is not available as a preconfigured plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants