Pilot 2026.6 — WebSocket Basic authentication rejected with Domoticz 2026.4

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
User avatar
seby901
Posts: 9
Joined: Tuesday 15 March 2022 10:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.4
Location: BELFORT France
Contact:

Pilot 2026.6 — WebSocket Basic authentication rejected with Domoticz 2026.4

Post by seby901 »

Hello,

I am investigating an issue with automatic device updates in the Pilot iOS app.

Version: Domoticz 2026.4 stable
Build hash: cc668a12b
Compile date: 2026-10-01 06:59:44
Platform: Raspberry Pi 3, Raspberry Pi OS Bookworm
Application: Pilot iOS 2026.6

Setup:

External HTTPS access through a Synology reverse proxy.

Proxy destination: Domoticz HTTPS listener on port 4431.

WebSocket Upgrade and Connection headers configured, HTTP/1.1 enabled.

Domoticz reverse proxy header: X-Forwarded-For.

Trusted networks: 192.168.1.0/24;127.0.0.1.

Pilot local server option disabled.

Symptoms:

Pilot loads device values successfully, and manual refresh works.

Automatic updates fail over 4G/5G.

Automatic updates were observed working on home Wi-Fi with the same Pilot settings. Whether trusted-network authentication explains this difference has not yet been verified.

In a desktop browser using the same external URL, the WebSocket connection receives HTTP 101 and device update messages.

The logs captured on November 27 show that Pilot's Basic authentication succeeds for /json.htm API requests, including getconfig, getversion and getdevices.

However, its WebSocket upgrade request to /json includes a Basic Authorization header and is rejected:

2026-11-27 11:14:09.672 Debug: [Auth Check] Basic Authorization ignored as this is not a call to the API!
2026-11-27 11:14:09.672 Debug: [web:4431] isPage 0 isAction 0 isUpgrade 1 needsAuthentication 1 isAuthenticated 0 () isNew 1
2026-11-27 11:14:09.672 Debug: [web:4431] Did not find suitable Authorization!

This is reproducible. The request reaches Domoticz with the WebSocket upgrade headers and Basic Authorization header present.

Is rejecting Basic authentication on /json intentional in this version? Which authentication method should a third-party application use for WebSocket connections? Is there a relevant server setting or a subsequent fix?

I found this related report, although its error concerns Origin validation rather than the authentication rejection shown above:
viewtopic.php?t=45115

I have also contacted the Pilot developer but have not received a response to the detailed report.

Thank you for your help.
Post Reply