2026.2 released Error opening url API Topic is solved

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
pierrotori
Posts: 125
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

2026.2 released Error opening url API

Post by pierrotori »

Hi,
every day the system execute dz.openurl(

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1
) and since the 2026.2 release i have this error : Error opening url

in fact if i test in the navigator

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1
, no action.
if i test

Code: Select all

 http://xxx.xxx.x.x:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1
, it's ok

But if i put the last url in the the fonction openurl, it's always on error
remarks : my api protection is off : Allow Basic-Auth authentication over plain HTTP (API only).

Could you check please ?

Pierrotori
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
waltervl
Posts: 7023
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: 2026.2 released Error opening url API timerplan

Post by waltervl »

Edit: Irrelevant...

Did you test this in browser on the Domoticz server machine?
Is It a docker environment as docker container has its own internal IP and that needs to be enabled in security settings. https://wiki.domoticz.com/Docker#IP_set ... e_gateways

Other Domoticz API calls have the same issue?
A nice one to test is with /json.htm?type=command&param=getversion as it gives different results based on authorisations etc:
https://wiki.domoticz.com/Domoticz_API/ ... z_instance
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
pierrotori
Posts: 125
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 2026.2 released Error opening url API

Post by pierrotori »

yes it's a docker landscape
i don't test in the browser on the domoticz, i haven't the graphical interface, but i can test with curl command

i tested the url

Code: Select all

/json.htm?type=command&param=getversion
in the shell script on my raspberry2, but the script use curl command and it's ok

i realize a another test this evening
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
pierrotori
Posts: 125
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 2026.2 released Error opening url API

Post by pierrotori »

in the conatainer

Code: Select all

root@d4730d11f3fe:/opt/domoticz# curl "http://127.0.0.1:8080/json.htm?type=command&param=getversion"
{
        "DomoticzUpdateURL" : "https://www.domoticz.com/download.php?channel=stable&type=release&system=linux&machine=armv7l",
        "HaveUpdate" : false,
        "Revision" : 18006,
        "SystemName" : "linux",
        "UseUpdate" : false,
        "build_time" : "2026-05-31 16:30:50",
        "db_size" : 7225344,
        "dzvents_version" : "3.1.11",
        "hash" : "f3afb08ad",
        "python_version" : "3.13.5 (main, May  5 2026, 21:05:52) [GCC 14.2.0]",
        "status" : "OK",
        "title" : "GetVersion",
        "version" : "2026.2"
}
root@d4730d11f3fe:/opt/domoticz# curl "http://192.168.0.6:8080/json.htm?type=command&param=getversion"
{
        "status" : "OK",
        "title" : "GetVersion"
}

Code: Select all

root@d4730d11f3fe:/opt/domoticz# curl "http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1"
{
        "status" : "ERR",
        "title" : "SetActiveTimerPlan"
}
root@d4730d11f3fe:/opt/domoticz# curl "http://192.168.0.6:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=1"
<html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html>
same error on the host
he doesn't accept the activeTimerPlan ,?!?
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
waltervl
Posts: 7023
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: 2026.2 released Error opening url API

Post by waltervl »

What if you do activate the timerplan from the gui? Do you see the same url in the developer network console (F12)?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
pierrotori
Posts: 125
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 2026.2 released Error opening url API

Post by pierrotori »

i found , when you call http://127.0.0.1:8080/json.htm?type=com ... imerPlan=1 then the Timer Plan is already equal to 1, you have the error open url

i have this error since the 2026.1
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
User avatar
waltervl
Posts: 7023
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: 2026.2 released Error opening url API

Post by waltervl »

Ah Ok , issue solved...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
pierrotori
Posts: 125
Joined: Tuesday 15 May 2018 0:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: France
Contact:

Re: 2026.2 released Error opening url API

Post by pierrotori »

i check with the api getsettings and if the ActiveTimerPlan is the same of next ActiveTimerPlan , i don't send the ActiveTimerPlan
rpi : Raspberry Pi 2 Model B Rev 1.1 / Modele : Cortex-A7 armv7l GNU/Linux / Os Name : bullseye
Docker/Domoticz/zwave-ui/homebridge/mosquitto/wireguard
Post Reply