Skip to content

Exception thrown after connect #5

@giri-v

Description

@giri-v

I get an exception thrown like this immediately after the 'connect' event fires.

Debugger listening on [::]:5858
events.js:160
throw er; // Unhandled 'error' event
^

ReferenceError: self is not defined
at C:\Users\fg89nn\Documents\Visual Studio 2015\Projects\CamLogger\CamLogger
\node_modules\node-hikvision-api\hikvision.js:70:10
at Parser. (C:\Users\fg89nn\Documents\Visual Studio 2015\Projects
\CamLogger\CamLogger\node_modules\xml2js\lib\parser.js:303:18)
at emitOne (events.js:96:13)
at Parser.emit (events.js:188:7)
at Object.onclosetag (C:\Users\fg89nn\Documents\Visual Studio 2015\Projects
CamLogger\CamLogger\node_modules\xml2js\lib\parser.js:261:26)
at emit (C:\Users\fg89nn\Documents\Visual Studio 2015\Projects\CamLogger\Cam
Logger\node_modules\sax\lib\sax.js:624:35)
at emitNode (C:\Users\fg89nn\Documents\Visual Studio 2015\Projects\CamLogger
\CamLogger\node_modules\sax\lib\sax.js:629:5)
at closeTag (C:\Users\fg89nn\Documents\Visual Studio 2015\Projects\CamLogger
\CamLogger\node_modules\sax\lib\sax.js:889:7)
at Object.write (C:\Users\fg89nn\Documents\Visual Studio 2015\Projects\CamLo
gger\CamLogger\node_modules\sax\lib\sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (C:\Users\fg89nn\Documents\Visua
l Studio 2015\Projects\CamLogger\CamLogger\node_modules\xml2js\lib\parser.js:322
:31)
Press any key to continue...

Can't seem to figure our where self is defined...

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions