-
Notifications
You must be signed in to change notification settings - Fork 240
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
events not working #76
Comments
Have you tried with latest from Github? I'm now getting I'm testing with a Reolink RLC-410. Trying to find consistent documentation. I'm seeing examples that say wsa:To must be specified, as well as other formats. New to onvif so still have some more digging to do. |
I see the same error:
Which seems to stem from the createPullPointSubscription() call in events.js which going back further gives an error from the request made, in my case:
On my Hikvision gear at least. If I look at the actual request, I'm not sure what is invalid. There certainly isn't much in the body and the rest appears to mainly be auth boilerplate: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<Security s:mustUnderstand="1" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<UsernameToken>
<Username>admin</Username>
<Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">xxxxxxxxxxxxxxx</Password>
<Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">nXsBIjyqKGLT2AqWGht/ug==</Nonce>
<Created xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2018-05-16T22:31:28.780Z</Created>
</UsernameToken>
</Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CreatePullPointSubscription xmlns="http://www.onvif.org/ver10/events/wsdl"/>
</s:Body>
</s:Envelope> Will continue to dig a bit.. |
Hi James (@Codelica), |
@bartbutenaers I'm afraid I didn't. Had to move on with some other projects, so this was left on the "someday" list :) Sorry... |
Event subscribing is something I'm trying to figure out as well. Why it has to be so complicated? |
someone who fixed/improved onvif-event handling may kindly state this here on this thered? |
I have rewritten parts of the events code and it works nicely with Hikvision and Axis equipment. So I will close this issue report as we have now code for events. Please raise a new report if you still have problems. |
I tried with node 6.10, 8.0, 8.1.
I'm not sure if it's related to camera (some clone from china), since I can see events in its manager (some internet explorer activex plugin), but... if someone else also has this problem, then there might be something here to explore...
--
and when I remove require ('http') (wich should not be a problem), then error changes to:
The text was updated successfully, but these errors were encountered: