ONVIF SOAP Fault: An error was discovered processing the wsse:Security header
See original GitHub issueHi, 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:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@WoodySlum Is that ok for you, can I close the issue?
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