Skip to content

[pihole] COMMUNICATION_ERROR in Pi-hole binding since RC1 – HTTP protocol violation #19842

@miloit

Description

@miloit

Description:

Since updating to RC1, the Pi-hole binding fails to communicate with the Pi-hole server. Attempting any operation triggers a COMMUNICATION_ERROR. The error appears to be related to HTTP authentication handling.

Steps to Reproduce:

Update the openhab to RC1.
Attempt to use any functionality that communicates with the Pi-hole server (e.g., fetching stats or toggling blocking).

Expected Behavior:

The binding should successfully communicate with the Pi-hole server and return the expected data or perform the requested action.

Actual Behavior:

Communication fails with the following error


COMMUNICATION_ERROR
Exception while sending request to Pi-hole. org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header

Additional Information:

This issue did not occur in previous versions before RC1.
The error suggests that the binding is receiving an authentication challenge from the Pi-hole server without the proper WWW-Authenticate header, which violates HTTP protocol expectations.
Pi-hole version:
Binding version: RC1
###Possible Workarounds:
None identified so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behavior of an add-on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions