Worker exception on invalid xml with XML.parse
Closed this issue · 0 comments
Turcheg commented
Issue
I'm not able to use xml.parse
, because it does not catch exception in njs and just throws it to worker process.
nginx_1 | 2023/09/30 06:47:09 [alert] 1#1: worker process 205 exited on signal 11
Reproduce
- Run
docker run -it nginx:mainline /usr/bin/njs
to enter njs cli - Paste
require('xml').parse('invalid xml')
and press enter