Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hikvision - Exception: Invalid HTTP Reponse : Unauthorized #30

Open
stephanschulz opened this issue Sep 4, 2022 · 0 comments
Open

Hikvision - Exception: Invalid HTTP Reponse : Unauthorized #30

stephanschulz opened this issue Sep 4, 2022 · 0 comments

Comments

@stephanschulz
Copy link

I am trying to make this addon receive an HTPP mjpeg stream from a DS-2cd2343g0-ib Hikvision IP camera.

This works in the browser:
http://admin:[email protected]/ISAPI/Streaming/channels/102/httpPreview

But when doing this in the OF app

 grabber.setUsername("admin");
    grabber.setPassword("myPassword");
    grabber.setURI("http://192.168.1.64/ISAPI/Streaming/channels/102/httpPreview");

gives me this error:
[ error ] IPVideoGrabber: Exception : [http://192.168.1.64/ISAPI/Streaming/channels/102/httpPreview]: Exception: Invalid HTTP Reponse : Unauthorized

You addon has worked well in the pasted with Axis cameras. As long as i set them to allow anonymous users.
At this point i am not able to find a similar setting in the Hikvision portal.

I tried to replace the grabber.setUsername() method with the grabber.setCookie(); option but no luck.

I hope someone has any advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant