GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: don't crash generate when a contributor's avatar_url is not an absolute URL by VincentBorgers · Pull Request #572 · all-contributors/cli

Conversation

@VincentBorgers

@VincentBorgers VincentBorgers commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What:

Fixes all-contributors generate crashing with TypeError: Invalid URL when a contributor's avatar_url is missing or not an absolute URL, for example a relative path to an image in the repository. This came in with #466, so it affects the 6.27.0 release candidate. 6.26.1 generates these entries without an error.

TypeError: Invalid URL
    at formatContributor (file:///.../src/generate/format-contributor.js:55:32)
  code: 'ERR_INVALID_URL',

Real configs have such entries. datalad/datalad-next and flux-framework/flux-restful-api each have a contributor whose avatar_url is [null]. With the .all-contributorsrc from datalad-next, 6.26.1 renders all 12 contributors and main throws.

Why:

#466 adds the image size with new URL(contributor.avatar_url), which throws for anything that is not an absolute URL, so a single entry like this stops the whole table from being generated.

How:

The size parameter is only added when URL.canParse() accepts the avatar URL. Other values go to the template unchanged, as before #466. The new test for a relative avatar URL fails on main with the same TypeError and passes with this change. npm test (115 tests) and npm run lint pass.

Checklist:

  • Documentation N/A
  • Tests
  • Ready to be merged
  • Added myself to contributors table

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@VincentBorgers
fix: don't crash generate when a contributor's avatar_url is not an a…
7456602
…bsolute URL
@JimMadge
JimMadge requested a review from jdalrymple October 8, 2026 13:51
JimMadge
JimMadge reviewed Oct 8, 2026
View reviewed changes

@JimMadge JimMadge left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @VincentBorgers 🎉

This looks good to me.
I'm not sure if avatars from a local path are expected, but I don't see a reason to break support when it worked in the past and especially as projects are already using that.

@jdalrymple could you have a look as this touches your changes?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jdalrymple and VincentBorgers reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@jdalrymple

jdalrymple commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Thanks @VincentBorgers 🎉

This looks good to me. I'm not sure if avatars from a local path are expected, but I don't see a reason to break support when it worked in the past and especially as projects are already using that.

@jdalrymple could you have a look as this touches your changes?

LGTM!

VincentBorgers reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jdalrymple
jdalrymple approved these changes Oct 13, 2026
View reviewed changes
@jdalrymple
jdalrymple merged commit 0b2f461 into all-contributors:main Oct 13, 2026
6 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@lwasser lwasser mentioned this pull request Oct 13, 2026
chore(main): release 6.27.0 #483
Closed
@JimMadge

JimMadge commented Oct 14, 2026

Copy link
Copy Markdown
Member

@allcontributors please add @VincentBorgers for code, bug

VincentBorgers reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@allcontributors allcontributors Bot mentioned this pull request Oct 14, 2026
docs: add VincentBorgers as a contributor for code, and bug #573
Merged
@allcontributors

allcontributors Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

@JimMadge

I've put up a pull request to add @VincentBorgers! 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JimMadge

JimMadge commented Oct 14, 2026

Copy link
Copy Markdown
Member

@allcontributors please add @jdalrymple for review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@allcontributors allcontributors Bot mentioned this pull request Oct 14, 2026
docs: add jdalrymple as a contributor for review #574
Merged
@allcontributors

allcontributors Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

@JimMadge

I've put up a pull request to add @jdalrymple! 🎉

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 23, 2026
chore(main): release 6.27.0 #581
Closed
chore(release): release 7.0.0 #583
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JimMadge JimMadge JimMadge left review comments
@jdalrymple jdalrymple jdalrymple approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@VincentBorgers @jdalrymple @JimMadge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.