Comments (8)
@bartbutenaers I'm afraid I didn't. Had to move on with some other projects, so this was left on the "someday" list :) Sorry...
from onvif.
Have you tried with latest from Github? I'm now getting Error: socket hang up
from pullMessages in (events.js) after adding a log for err.
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.
from onvif.
I see the same error:
Error: You should create pull-point subscription first!
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:
ONVIF SOAP Fault: Argument Value Invalid
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..
from onvif.
Hi James (@Codelica),
Have you ever found a solution for the pull-point subscription error?
Thanks !!
Bart
from onvif.
Event subscribing is something I'm trying to figure out as well. Why it has to be so complicated?
from onvif.
someone who fixed/improved onvif-event handling may kindly state this here on this thered?
i subscribe now and wait for update...
👍
from onvif.
@ozett https://github.com/Tsopic/hikvision-node-eventSubscribe
from onvif.
I have rewritten parts of the events code and it works nicely with Hikvision and Axis equipment.
The new code handles the missing wsa:To field in the XML and subscribes to the pull point first.
Example6.js gives a simple demo.
So I will close this issue report as we have now code for events. Please raise a new report if you still have problems.
Thanks
from onvif.
Related Issues (20)
- Non conform /onvif/media2_service response leads to Error: Unrecognized configuration HOT 2
- setOSD(): position can take effect, but plaintext does not HOT 1
- Question: I have a dvr/nvr dahua so the discover method retrieve me 1 record. Is there any other method that can tell me how many cameras the dvr has? HOT 2
- Error: GetRecordings
- Compatibility of Axis M5000-G PTZ Camera. HOT 4
- HikVision "Wrong ONVIF Soap Response" Error HOT 17
- Find recording from nvr within specific time HOT 4
- ONVIF SOAP Fault during connect with Vivotek camera's HOT 3
- Action string in Content-Type causes failures with Illustra cameras
- Discovery has been unable to search, how to debug it
- Discovery displays HTTP servers on local network
- Wrong ONVIF SOAP Response on AXIS Cameras
- NetworkInterfaceSetConfiguration documentation change
- feat req: custom position in createOSD HOT 1
- No events for TAPO C520 C510 HOT 1
- relativeMove documentation incorrect
- Unsubscribe: Triggers a second unsubscribe via _eventRequest
- getRecordingOptions not working with UNIVIEW Channels | brand issue | ONVIF SOAP Fault: Optional Action Not Implemented
- Add an option to set pull-request timeout
- getStreamUri not working correctly on multi channel NVR HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onvif.