question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ONVIF SOAP Fault: An error was discovered processing the wsse:Security header

See original GitHub issue

Hi, got a Victure PC530 camera, but when calling connect got an error :

Error: ONVIF SOAP Fault: An error was discovered processing the wsse:Security header.
    at /Users/xxxxxxx/core-node/node_modules/onvif/lib/utils.js:80:12
    at Parser.<anonymous> (/Users/xxxxxxx/core-node/node_modules/xml2js/lib/parser.js:304:18)
    at Parser.emit (events.js:223:5)
    at SAXParser.onclosetag (/Users/xxxxxxx/core-node/node_modules/xml2js/lib/parser.js:262:26)
    at emit (/Users/xxxxxxx/core-node/node_modules/sax/lib/sax.js:624:35)
    at emitNode (/Users/xxxxxxx/core-node/node_modules/sax/lib/sax.js:629:5)
    at closeTag (/Users/xxxxxxx/core-node/node_modules/sax/lib/sax.js:889:7)
    at SAXParser.write (/Users/xxxxxxx/core-node/node_modules/sax/lib/sax.js:1436:13)
    at Parser.exports.Parser.Parser.parseString (/Users/xxxxxxx/core-node/node_modules/xml2js/lib/parser.js:323:31)
    at Parser.parseString (/Users/xxxxxxx/core-node/node_modules/xml2js/lib/parser.js:5:59)
    at Object.exports.parseString (/Users/xxxxxxx/core-node/node_modules/xml2js/lib/parser.js:369:19)
    at parseSOAPString (/Users/xxxxxxx/core-node/node_modules/onvif/lib/utils.js:62:9)
    at IncomingMessage.<anonymous> (/Users/xxxxxxx/core-node/node_modules/onvif/lib/cam.js:202:4)
    at IncomingMessage.emit (events.js:228:7)
    at endReadableNT (_stream_readable.js:1185:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21) null <soap:Envelope     >
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Sender</soap:Value><soap:Subcode>
<soap:Value>wsse:InvalidSecurity</soap:Value>
</soap:Subcode>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">An error was discovered processing the wsse:Security header.</soap:Text>
</soap:Reason>
<soap:Node>http://www.w3.org/2003/05/soap-envelope/node/ultimateReceiver</soap:Node>
<soap:Role>http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver</soap:Role>
</soap:Fault>
</soap:Body>
</soap:Envelope>

Any idea ? Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
agshcommented, Dec 17, 2020

@WoodySlum Is that ok for you, can I close the issue?

0reactions
dakkarcommented, Dec 17, 2020

the correct solution would be to notice the 401 and react accordingly (it means “unautorised, try again with credentials”), without looking at the body of the response at all

Read more comments on GitHub >

github_iconTop Results From Across the Web

An error was discovered processing the <wsse:Security ...
I try to intercept encrypted soap message in wildfly 10 with soapUI. Deployment is successful. First below pics are outgoing ws-security ...
Read more >
ONVIF Device Manager / Bugs / #20 Security Header not ...
The first request after discovery (GetCapabilities) is sent by onvif ... But onvif dm displays an error message "The security header was not ......
Read more >
An error was discovered processing the WS-Security ...
Observed the below error during mid server installation. ENV:Fault> wsse:InvalidSecurity An error was discovered processing the WS-Security ...
Read more >
An error was discovered processing the <wsse:Secur...
I try to intercept encrypted soap message in wildfly 10 with soapUI. Deployment is successful. First below pics are outgoing ws-security.
Read more >
ONVIF Core Specification
message processing. All such SOAP errors shall be reported and handled through SOAP fault messages. The SOAP specification provides a well ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found