Skip to content

Conversation

@justjam2013
Copy link
Contributor

@justjam2013 justjam2013 commented Oct 5, 2025

♻️ Current situation

When running on an older version of Homebridge UI, the call to get ignored plugins fails with ERR_BAD_REQUEST error, as there is only a PUT endpoint and no GET endpoint.

💡 Proposed solution

The best solution going forward is to catch ERR_BAD_REQUEST errors and if they are generated as a response to the call to get ignored plugins, then output a warning to the logs that this functionality requires a newer version of Homebridge UI and the user should update.

⚙️ Release Notes

This code fix should be accompanied by a warning on the UI that ignoring updates for ignored plugins will not work on older versions of Homebridge UI and the and the user should update to the latest version if they want to use this feature.

➕ Additional Information

Logs as currently output by Homebridge UI v5.4.1:

Screenshot 2025-10-05 at 3 38 22 PM

This PR addresses issue #199 - 🐞 Bug: ERR_BAD_REQUEST error connecting to http://localhost:8581/api/config-editor/ui/plugins/hide-updates-for

@justjam2013 justjam2013 changed the title Added warning for old HBUI Added warning for old version of Homebridge UI Oct 5, 2025
@justjam2013
Copy link
Contributor Author

Please do not merge yet. Still testing options.

@justjam2013
Copy link
Contributor Author

justjam2013 commented Oct 5, 2025

Added a check for error status 404, which is what the PUT endpoint returns when a GET is received and pretty printing the error in the debug logs for better readability.

Logs as currently output by Homebridge UI v5.4.1 with debug on:

Screenshot 2025-10-05 at 4 15 46 PM Screenshot 2025-10-05 at 4 16 01 PM

@justjam2013
Copy link
Contributor Author

This PR is ready for review and merge.

@donavanbecker
Copy link
Contributor

@justjam2013 Do you want beta or new release?

@justjam2013
Copy link
Contributor Author

@donavanbecker Let's do a beta first.

@donavanbecker donavanbecker changed the base branch from latest to beta-2.3.6 October 5, 2025 19:27
@donavanbecker donavanbecker merged commit ac9dc63 into homebridge-plugins:beta-2.3.6 Oct 5, 2025
@justjam2013 justjam2013 deleted the warning-for-old-homebridge-ui branch October 5, 2025 21:21
@donavanbecker donavanbecker mentioned this pull request Nov 1, 2025
donavanbecker added a commit that referenced this pull request Nov 1, 2025
## [2.3.6](https://github.com/homebridge-plugins/homebridge-plugin-update-check/releases/tag/v2.3.6) (2025-11-01)

### What's Changed
- Add explicit warning when an outdated Homebridge UI (homebridge-config-ui-x) is detected, explaining that a newer UI version is required for full functionality ([#200](#200))
- Clarify the requirement notice to better guide users on updating the Homebridge UI
- Housekeeping and updated dependencies.

**Full Changelog**: v2.3.5...v2.3.6
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

Successfully merging this pull request may close these issues.

2 participants