DzVents OpenURL response error
Posted: Thursday 17 April 2025 20:18
Hi
I am running the Domoticz stable docker image on Raspberry Pi4.
The Pi 4 is running the current Pi OS based on Debian bookworm.
For a few years I have been using Domoticz to monitor the local river level using a DzVents script.
The script accesses the UK Environment Agency (EA) API.
An example script: All was OK when the EA allowed access via http: but it changed to only supporting https: access.
I changed the script to use https: but then domoticz reported an error:
2025-04-17 19:00:04.432 Error: Error opening url: https://environment.data.gov.uk/flood-m ... h/measures
2025-04-17 19:00:04.465 Error: dzVents: HTTP/1.1 response: 403 ==>> Forbidden
I found I could stop this error by re-starting the docker instance.
Sometimes it took a number of restarts but then the script would run without error.
Now after a recent Pi kernel update, the error remains all the time.
Restarting the docker instance no longer fixes the problem.
If I SSH into the Pi and run:
curl -I https://environment.data.gov.uk/flood-m ... h/measures
It responds with:
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2025 17:27:04 GMT
Content-Type: application/json
Content-Length: 775
Connection: keep-alive
Server: openresty/1.21.4.4
Vary: Accept
Cache-Control: no-transform, max-age=300
Last-Modified: Thu, 17 Apr 2025 17:18:23 GMT
Age: 57
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=15724800; includeSubDomains
No 403 forbidden error.....
Can anyone advise how I can troubleshoot this error?
Regards
Richard
I am running the Domoticz stable docker image on Raspberry Pi4.
The Pi 4 is running the current Pi OS based on Debian bookworm.
For a few years I have been using Domoticz to monitor the local river level using a DzVents script.
The script accesses the UK Environment Agency (EA) API.
An example script: All was OK when the EA allowed access via http: but it changed to only supporting https: access.
I changed the script to use https: but then domoticz reported an error:
2025-04-17 19:00:04.432 Error: Error opening url: https://environment.data.gov.uk/flood-m ... h/measures
2025-04-17 19:00:04.465 Error: dzVents: HTTP/1.1 response: 403 ==>> Forbidden
I found I could stop this error by re-starting the docker instance.
Sometimes it took a number of restarts but then the script would run without error.
Now after a recent Pi kernel update, the error remains all the time.
Restarting the docker instance no longer fixes the problem.
If I SSH into the Pi and run:
curl -I https://environment.data.gov.uk/flood-m ... h/measures
It responds with:
HTTP/1.1 200 OK
Date: Thu, 17 Apr 2025 17:27:04 GMT
Content-Type: application/json
Content-Length: 775
Connection: keep-alive
Server: openresty/1.21.4.4
Vary: Accept
Cache-Control: no-transform, max-age=300
Last-Modified: Thu, 17 Apr 2025 17:18:23 GMT
Age: 57
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=15724800; includeSubDomains
No 403 forbidden error.....
Can anyone advise how I can troubleshoot this error?
Regards
Richard