Closed bryeartem closed 3 years ago
What authentication method are you using? I think if the camera (nvr) config you can set basic or digest. If nothing set, it is probably defaulting to basic.
On Fri, 11 Sep 2020 at 08:08, bryeartem notifications@github.com wrote:
I have a newer NV4216E-AI NVR and cannot connect with message "Invalid Authority" The API seems identical to previous models, and I can also use /cgi-bin/eventManager.cgi?action=attach&codes=[VideoMotion] and get the expected Code=VideoMotion,Start/Stop etc when using in browser.. it seems it is not authenticating properly as I get this message: `INFO:main:Connected to MQTT OK Returned code=0 2020-09-10 16:03:59,284 - main - INFO - Connected to MQTT OK Returned code=0 INFO:main:Connected to MQTT OK Returned code=0 2020-09-10 16:04:01,179 - main - DEBUG - [NVR]: Error Invalid Authority!
DEBUG:main:[NVR]: Error Invalid Authority!
2020-09-10 16:04:01,180 - main - DEBUG - [NVR] OnDisconnect(Success) DEBUG:main:[NVR] OnDisconnect(Success) ` I'm hoping you could tell me what I could do to troubleshoot the issue. I read in a zoneminder forum about issues with PTZ commands needing to be sent twice as it would fail for authentication the first time then work on the second. I really don't know where to start..
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/psyciknz/CameraEvents/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABI2I45H6SLOJXM4CSRRXT3SFEW5PANCNFSM4RFYWWWA .
So I verified and it was on digest, I did try basic last night once I realized it wasn’t connecting. Is there a way to see more detail that just the “Invalid Authority” message?
Not really no...... it's just using curl in the background. Maybe just try going to the event url via curl and seeing if you can login or not.
On Fri, 11 Sep 2020 at 09:34, bryeartem notifications@github.com wrote:
So I verified and it was on digest, I did try basic last night once I realized it wasn’t connecting. Is there a way to see more detail that just the “Invalid Authority” message?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/psyciknz/CameraEvents/issues/17#issuecomment-690744481, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABI2I434NHI7EL77IBXHQZDSFFA7VANCNFSM4RFYWWWA .
My apologies, I guess I really went down the rabbit-hole troubleshooting this one... and didn't follow my own normal steps for not making multiple changes when troubleshooting... I just assumed it wasn't working and ended up jacking up a few things... ultimately my cameras had "incorrect" names from what they used to be in MQTT, but I must have changed my config.ini before I realized and started a domino effect as I also had to hardcode the config.ini back when I first started using this.. so the "Invalid Authority" was because it was using a config.ini that wasn't populated fully and didn't have my username and password..
I have a newer NV4216E-AI NVR and cannot connect with message "Invalid Authority" The API seems identical to previous models, and I can also use /cgi-bin/eventManager.cgi?action=attach&codes=[VideoMotion] and get the expected Code=VideoMotion,Start/Stop etc when using in browser.. it seems it is not authenticating properly as I get this message: `INFO:main:Connected to MQTT OK Returned code=0 2020-09-10 16:03:59,284 - main - INFO - Connected to MQTT OK Returned code=0 INFO:main:Connected to MQTT OK Returned code=0 2020-09-10 16:04:01,179 - main - DEBUG - [NVR]: Error Invalid Authority!
DEBUG:main:[NVR]: Error Invalid Authority!
2020-09-10 16:04:01,180 - main - DEBUG - [NVR] OnDisconnect(Success) DEBUG:main:[NVR] OnDisconnect(Success) ` I'm hoping you could tell me what I could do to troubleshoot the issue. I read in a zoneminder forum about issues with PTZ commands needing to be sent twice as it would fail for authentication the first time then work on the second. I really don't know where to start..