Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entity expansion has grown too large error when retrieving statements for a subscription #170

Open
ryoung opened this issue Jun 13, 2019 · 1 comment

Comments

@ryoung
Copy link

ryoung commented Jun 13, 2019

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?

Thanks

@ryoung
Copy link
Author

ryoung commented Jun 17, 2019

It looks like we can change the format to JSON by doing Chargify::Base.format = :json. This gets around the XML parser runtime error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant