Skip to content

fix: Spoolman URL protocol#1792

Merged
pedrolamas merged 1 commit intofluidd-core:developfrom
pedrolamas:pedrolamas/fix-1791
Feb 12, 2026
Merged

fix: Spoolman URL protocol#1792
pedrolamas merged 1 commit intofluidd-core:developfrom
pedrolamas:pedrolamas/fix-1791

Conversation

@pedrolamas
Copy link
Copy Markdown
Member

Moonraker currently allows the Spoolman server to be set as just a host (without protocol), and that would break Fluidd when we use URL() function to build the URL.

This fix ensures that the setting value starts with either "http://" or "https://" and if not, it will default to "http://"

Fixes #1791

@pedrolamas pedrolamas added this to the 1.36.3 milestone Feb 12, 2026
@pedrolamas pedrolamas requested a review from Copilot February 12, 2026 17:04
@pedrolamas pedrolamas added the GH - Bug Something isn't working label Feb 12, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Ensures the configured Spoolman server setting works when Moonraker provides a host/IP without a URL scheme, preventing failures when Fluidd builds URLs via new URL().

Changes:

  • Prefixes the Spoolman server value with http:// when it doesn’t already start with http:// or https://.
  • Updates URL construction in the Spoolman store getter to use the normalized value.

Comment thread src/store/spoolman/getters.ts Outdated
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@pedrolamas pedrolamas merged commit 756be25 into fluidd-core:develop Feb 12, 2026
10 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-1791 branch February 12, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GH - Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spoolman server URL in moonraker.conf without scheme fails to load

2 participants