Page 1 of 1

2026.2 released Error opening url API

Posted: Thursday 04 June 2026 15:23
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

Re: 2026.2 released Error opening url API timerplan

Posted: Thursday 04 June 2026 16:05
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

Re: 2026.2 released Error opening url API

Posted: Thursday 04 June 2026 16:28
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

Re: 2026.2 released Error opening url API

Posted: Thursday 04 June 2026 20:42
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 ,?!?

Re: 2026.2 released Error opening url API

Posted: Thursday 04 June 2026 21:13
by waltervl
What if you do activate the timerplan from the gui? Do you see the same url in the developer network console (F12)?

Re: 2026.2 released Error opening url API

Posted: Friday 05 June 2026 19:18
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

Re: 2026.2 released Error opening url API

Posted: Saturday 06 June 2026 0:12
by waltervl
Ah Ok , issue solved...

Re: 2026.2 released Error opening url API

Posted: Saturday 06 June 2026 10:17
by pierrotori
i check with the api getsettings and if the ActiveTimerPlan is the same of next ActiveTimerPlan , i don't send the ActiveTimerPlan