json api no longer working in latest Beta

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
stephanvdplas
Posts: 76
Joined: Wednesday 13 February 2019 18:09
Target OS: Windows
Domoticz version: 2023.1
Location: Netherlands
Contact:

json api no longer working in latest Beta

Post by stephanvdplas »

I tried to change a setting via the json api, but since a couple of days it doesn't work on my beta environment.
I suspect it having to do with the latest changes of the authentication. But I am unable to troubleshoot at this moment.

When I run

Code: Select all

https://user:password@serverDNSname/json.htm?&type=command&param=udevice&idx=1919&nvalue=0&svalue=test
I receive
{
"status" : "ERR"
}

A wireshark serverside does show me a valid SSL handshake and some TLS 1.3 data, but it doesn''t help me in troubleshooting.

Can someone help me in troubleshooting this?

Regards,
Stephan van der Plas
- Running LMS, Domoticz and Dashticz on a windows 11 laptop.
- LMS (11 players) / Hue (26 lights, 2 switches) / Z-wave (14 devices) / Toon (unrooted) / Chromecast
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

json api no longer working in latest Beta

Post by kiddigital »

If you run that from the browser (ie Chrome) than it does not work a the browser strips the u/p from the request (look at your Wireshark output the see the URL going out).

Try to run the command with curl for example. (Or ‘Invoke-WebRequest’ on Windows Powershell).

Run Domoticz with the debug flags ‘auth,webserver,received’ to see what info Domoticz receives and what the Auth check do.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest