Hi folks!
Today i encountered a new problem.
I get XML-data by a Webservice-Request.
I tried to convert the incomeing data from XML into JSON.
So far I always got a medium size XML-Response with a length of about 300k of data.
Today I raised the amount of date to about 650k and now I get errors within the XML-node that I never saw before:
I caught the Exception and analyzed the stacktrace I got:
{
"message": "Error: Invalid character in name",
"source": {
"id": "ab2f05cb.afd8a8",
"type": "xml",
"count": 1
},
"stack": "Error: Invalid character in name
at XMLStringifier.module.exports.XMLStringifier.assertLegalName (/usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js:213:15)
at XMLStringifier.assertLegalName (/usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js:4:59)
at XMLStringifier.module.exports.XMLStringifier.name (/usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js:29:19)
at new XMLElement (/usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js:26:34)
at XMLElement.module.exports.XMLNode.node (/usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js:304:15)
at XMLElement.module.exports.XMLNode.element (/usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js:236:28)
at XMLElement.module.exports.XMLNode.ele (/usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js:531:19)
at /usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/node_modules/xml2js/lib/builder.js:108:37
at Builder.exports.Builder.Builder.buildObject (/usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/node_modules/xml2js/lib/builder.js:120:14)
at XMLNode._inputCallback (/usr/local/lib/node_modules/node-red/node_modules/@node-red/nodes/core/parsers/70-XML.js:22:37)"
}
Is it a Memory-fault or might this really be a content-problem?
Excuse my lack of sample data but I dunno which part of the 650k I should post?
Do you have any suggestions how I can dig into my problem?
Cheerio
Swen
(note: edited to make the trace readable - zenofmud)