henry-spanka / node-red-contrib-hikvision

Hikvision API for Node Red
MIT License
10 stars 1 forks source link

Invalid status code #31

Open NathanAMiller opened 4 years ago

NathanAMiller commented 4 years ago

I have 3 (different models) Hikvision camera, one of them has this error:

"Invalid status code"

image

Any idea?

Settings:

image

image

ozett commented 4 years ago

maybe firmware issue? What version? What model?

maybe share the flow hereas code that one could check on node-red?

--edit: saw that the 1st setting was there...

--edit2: maybe this missing? -> image

NathanAMiller commented 4 years ago

Here is the Model and Firmware image

But the is no CGI settings in Network Advanced Settings image

NathanAMiller commented 4 years ago

Also my camera config on Node-Red image

ozett commented 4 years ago

dont have a clue whats wrong..maybe this model has no alerts? dont think so. do you have activated any alert? there is also a minor firmewarupgrade...maybe also give that a try.

http://www.hikvisioneurope.com/portal/?dir=portal/Technical%20Materials/00%20%20Network%20Camera/00%20%20Product%20Firmware/E3S%20platform%281X23G0E%2C1X21%28E%29%29/V5.5.84_Build191010

your other cameras work? maybe a total-reset of this camera, and start from beginning?

do you filled in the port-number by hand? there is a number shown, but it must be entered again by hand...

NathanAMiller commented 4 years ago

Just updated to V5.5.84

image

and no success.

there is no changes in Network > Advanced > Integration Protocol

image

CGI Settings is missing

also, my other cameras work fine. Just this one not working

henry-spanka commented 4 years ago

Hmm, according to the data sheet it supports ISAPI. You might want to open a support ticket and ask them how to enable the API.

ozett commented 4 years ago

did you try to find the needed config in different browsers? maybe some quirk with IE or chrome? or just from another PC/browser combination?

ozett commented 4 years ago

i dont see this on any of my cams, but i dont have no hik-connect active. maybe you have some other option activated, which disable "integration-procotol"?

there are some pictures in google-search to see, which show the same config as your cam withou integration protocol. may you also investigate with google-image search?

ozett commented 4 years ago

what user are you? administrator? maybe missing rights to config?

image

ozett commented 4 years ago

any progress here? may try curl on cam or on dvr - and report your findings?

curl -u USER:PASS http://YOURCAMIP/ISAPI/Event/notification/alertStream https://github.com/henry-spanka/node-red-contrib-hikvision/issues/10#issuecomment-645567127

ozett commented 4 years ago

invalid status code may come from missing "basic-auth" as said here https://github.com/henry-spanka/node-red-contrib-hikvision/issues/31#issuecomment-640517772? also mentioned here: : https://github.com/dbowerman/node-red-contrib-hikcamera/issues/3

vampywiz17 commented 3 years ago

@ozett

I think is better if you use the http request node.

image

advantages:

Both settings is a security hole.... If you want to write the picture to the storage, simply use the "file" node:

image

ozett commented 3 years ago

Could be a solution. I Must Check if that works With hilook cameras, too... Thx for the Details