Git Product home page Git Product logo

Comments (8)

Codelica avatar Codelica commented on August 19, 2024 1

@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.

batchnulls avatar batchnulls commented on August 19, 2024

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.

Codelica avatar Codelica commented on August 19, 2024

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.

bartbutenaers avatar bartbutenaers commented on August 19, 2024

Hi James (@Codelica),
Have you ever found a solution for the pull-point subscription error?
Thanks !!
Bart

from onvif.

Tsopic avatar Tsopic commented on August 19, 2024

Event subscribing is something I'm trying to figure out as well. Why it has to be so complicated?

from onvif.

ozett avatar ozett commented on August 19, 2024

someone who fixed/improved onvif-event handling may kindly state this here on this thered?
i subscribe now and wait for update...
👍

from onvif.

Tsopic avatar Tsopic commented on August 19, 2024

@ozett https://github.com/Tsopic/hikvision-node-eventSubscribe

from onvif.

RogerHardiman avatar RogerHardiman commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.