hawkeye64 / onvif-nvt

ONVIF library for NVT (Network Video Transmitter) devices.
MIT License
76 stars 23 forks source link

Event messages:error: SubscribeCreationFailedFault #74

Open strarsis opened 5 years ago

strarsis commented 5 years ago

After PTZ GoTo finished a message should be received by the nodejs script. A message is received, but an error message:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tst="http://www.onvif.org/ver10/storage/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl" xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12" xmlns:http="http://schemas.xmlsoap.org/wsdl/http" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2" xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsrf-r="http://docs.oasis-open.org/wsrf/r-2" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tas="http://www.onvif.org/ver10/advancedsecurity/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:axt="http://www.onvif.org/ver20/analytics"><env:Header><wsa:Action> http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
</env:Header>
<env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value>
</env:Code>
<env:Reason><env:Text xml:lang="en">wsnt:SubscribeCreationFailedFault</env:Text>
</env:Reason>
<env:Detail><wsnt:SubscribeCreationFailedFault><wsrf-bf:Timestamp>2019-09-20T16:58:52Z</wsrf-bf:Timestamp>
</wsnt:SubscribeCreationFailedFault>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>

Also messages are received, but only of one type:

CreatePullPointSubscription

Does the nodejs script have to pull from a particular URL to retrieve the actual event data?

hawkeye64 commented 5 years ago

Thanks for reporting Please add any relevant information about camera type.

strarsis commented 5 years ago

@hawkeye64: Model is HiLook PTZ-N2204I. ONVIF is enabled, "Operator"-Level user is used by the nodejs script, there is also "Administrator" available, but it making the user an "Administrator" doesn't help with the issue. I get the error events many times and quite regularly during the script run. Also switched from IPv6 IPCam address to the IPv4 one because some programs had issues with IPv6 support, but this also doesn't seem to be the issue.

strarsis commented 5 years ago

@hawkeye64: Is there any other information that can be helpful?

strarsis commented 5 years ago

@hawkeye64: So after some time I tried the script again and first I got messages, then in a subsequent script run I only get Message Errors. Could this issue occur because events are pulled multiple times from the device, I also explicitly called camera.events.stopPull() but this doesn't help.

hawkeye64 commented 5 years ago

It's possible. I haven't found time to look into this yet. I have 3 cameras at my disposal and all three (Hikvision, Axis and Trendnet) were all working. That doesn't mean much. I found lots of errors in each of those cameras for not exactly following the spec. And for Hikvision, even had to write special handling code because of them misspelling a critical command.

strarsis commented 5 years ago

@hawkeye64: It is very unlikely that you have the same Hikvision model as I have, I can give you ONVIF access to that IPCamera so you can see the actual XML data. If you like, you can give me an email address or send me an email to strarsis@gmail.com and I send you its hostname, ONVIF username, and password (I can't publish them here on GitHub of course).

hawkeye64 commented 5 years ago

@strarsis email sent. Thanks.

hawkeye64 commented 5 years ago

@strarsis I apologize, I just haven't been able to find time for this.

hawkeye64 commented 4 years ago

Almost 7 weeks ago, I was struggling with a ruptured disk. This last past Friday I had the back op and on my way to mending and being able to (hopefully) sit at a computer for more than 20 minutes.

hawkeye64 commented 4 years ago

One other thing, I realized I never did get the hikvision events working. The other two IP cameras I have available, yes.

pixotri commented 4 years ago

Same error I get. I use BCS camera.