Closed tibmeister closed 3 years ago
Its saying it cant find the login file in url. is your API setup for that path?
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://zm.tiberiansun.us:2417/api/host/login.json
try curl or wget to that api adddress and see what happens. Seems your other stuff is set up fine.
wget https://zm.tiberiansun.us:2417/zm/api/host/login.json
--2021-03-11 00:53:21-- https://zm.tiberiansun.us:2417/zm/api/host/login.json
Resolving zm.tiberiansun.us (zm.tiberiansun.us)... 69.49.75.202
Connecting to zm.tiberiansun.us (zm.tiberiansun.us)|69.49.75.202|:2417... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.
see how I changed it to
https://zm.tiberiansun.us:2417/zm/api/host/login.json
from
https://zm.tiberiansun.us:2417/api/host/login.json
Change your API in zmNinja app
Check secrets.ini
for api and portal URLs. I suspect one of them don't have /zm at the end.
secrets.ini
was
ZM_PORTAL=https://zm.tiberiansun.us:2417/zm
ZM_API_PORTAL=https://zm.tiberiansun.us:2417/api
changed
ZM_PORTAL=https://zm.tiberiansun.us:2417/zm
ZM_API_PORTAL=https://zm.tiberiansun.us:2417/zm/api
I haven't touched the secrets.ini file for some months, so not sure how that was altered.
Is this issue resolved then? (the software doesn't do any write operations to secrets.ini)
Oh I'm sure I restored an older version at some point trying to troubleshoot various things.
Event Server version 6.1.14
Hooks version (if you are using Object Detection) app:6.1.14, pyzm:0.3.36
The version of ZoneMinder you are using: 1.34.23
What is the nature of your issue Bug
Details
Alarm trigger does not perform any object detection since upgrading ES and ZM.
Debug Logs (if applicable)
My object detection config
Hooks sections
Thanks!