You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERRORS: Error: Non-whitespace before first tag.
Line: 0
Column: 1
Char: "
RESULTS: undefined
events.js:85
throw er; // Unhandled 'error' event
^
Error: Text data outside of root node.
Line: 0
Column: 2
Char: s
at error (/home/fiznool/Code/sandbox/xml2js-parse-exception/node_modules/xml2js/node_modules/sax/lib/sax.js:652:8)
at strictFail (/home/fiznool/Code/sandbox/xml2js-parse-exception/node_modules/xml2js/node_modules/sax/lib/sax.js:675:22)
at Object.write (/home/fiznool/Code/sandbox/xml2js-parse-exception/node_modules/xml2js/node_modules/sax/lib/sax.js:981:13)
at Parser.exports.Parser.Parser.processAsync (/home/fiznool/Code/sandbox/xml2js-parse-exception/node_modules/xml2js/lib/xml2js.js:254:41)
at Immediate._onImmediate (/home/fiznool/Code/sandbox/xml2js-parse-exception/node_modules/xml2js/lib/xml2js.js:7:59)
at processImmediate [as _immediateCallback] (timers.js:367:17)
I'm guessing this has something to do with the processAsync function causing the error event to be emitted in a new cycle, which isn't caught by the error handler setup in parseString. But I'm not really sure.
The text was updated successfully, but these errors were encountered:
This seems to be a side-effect of #229.
async
set tofalse
:yields (as expected):
However,
async
set totrue
:throws an unhandled exception:
I'm guessing this has something to do with the
processAsync
function causing the error event to be emitted in a new cycle, which isn't caught by the error handler setup inparseString
. But I'm not really sure.The text was updated successfully, but these errors were encountered: