I'm getting a RuntimeError (entity expansion has grown too large) when retrieving statements for a subscription using Chargify::Subscription.find(12345).statements. After some investigation, it looks like the XML response is too large to parse for some statements with a large number of transactions.
Is there a recommended solution here, other than to increase REXML::Document.entity_expansion_text_limit to a huge limit? Is there a way to use another XML parser?
I'm getting a
RuntimeError (entity expansion has grown too large)
when retrieving statements for a subscription usingChargify::Subscription.find(12345).statements
. After some investigation, it looks like the XML response is too large to parse for some statements with a large number of transactions.Is there a recommended solution here, other than to increase
REXML::Document.entity_expansion_text_limit
to a huge limit? Is there a way to use another XML parser?Thanks