Tedyst / HikLoad

Download videos from a HikVision DVR/NVR
MIT License
76 stars 26 forks source link

Download recorded files Error #7

Closed rhdgkr001 closed 3 years ago

rhdgkr001 commented 3 years ago

After modifying config.py, I ran main.py, but the following error occurred. Would you give me a hand?

ERROR:root:Got the response: OrderedDict([('userCheck', OrderedDict([('statusValue', '401'), ('statusString', 'Unauthorized')]))])

Tedyst commented 3 years ago

Does the password/username include by any chance the character \? The Python interpreter is sometimes weird with these types of strings.

rhdgkr001 commented 3 years ago

No, \characters are not included. Is it an error caused by a mismatch in the password? I.D : admin P.W : 1234

(I checked that the account is logged in through the i-vms program)

Tedyst commented 3 years ago

That's what I think it could be. But I am not sure at the moment.

On Mon, May 31, 2021, 07:34 rhdgkr001 @.***> wrote:

No, \characters are not included. Is it an error caused by a mismatch in the password? I.D : admin P.W : 1234

(I checked that the account is logged in through the i-vms program)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Tedyst/HikLoad/issues/7#issuecomment-851163625, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIBP53SOYGRBJ6OCYN5HM3TQMGT3ANCNFSM452CQDEA .

rhdgkr001 commented 3 years ago

Oh, I don't use docker, is it because of that?

Tedyst commented 3 years ago

Shouldn't really be a problem, but you could try. In a few hours I will have time to check the code where this issue occurs specifically.

Tedyst commented 3 years ago

By looking at the ISAPI pdf, I found that a 401 response means that the Authorization headers are not being sent in the request. I am not sure what causes this, but I am still looking into it.

rhdgkr001 commented 3 years ago

Thanks to your advice that it's like an account problem, I had to create a new user on the camera using an operator role and selecting the roles. Then response was converted to [200]!

I still don't know why I can't access my 'admin' account, but I succeeded in moving on to the next line. Thank you for helping me.