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

Event messages:error: SubscribeCreationFailedFault #74

Open
strarsis opened this issue Sep 20, 2019 · 11 comments
Open

Event messages:error: SubscribeCreationFailedFault #74

strarsis opened this issue Sep 20, 2019 · 11 comments

Comments

@strarsis
Copy link

strarsis commented Sep 20, 2019

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
Copy link
Owner

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

@strarsis
Copy link
Author

strarsis commented Sep 21, 2019

@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
Copy link
Author

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

@strarsis
Copy link
Author

strarsis commented Sep 24, 2019

@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
Copy link
Owner

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
Copy link
Author

@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 [email protected] and I send you its hostname, ONVIF username, and password (I can't publish them here on GitHub of course).

@hawkeye64
Copy link
Owner

@strarsis email sent. Thanks.

@hawkeye64
Copy link
Owner

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

@hawkeye64
Copy link
Owner

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
Copy link
Owner

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

@pixotri
Copy link

pixotri commented Dec 10, 2019

Same error I get. I use BCS camera.

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

3 participants