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

Big json arrays? #531

Closed
Quafadas opened this issue Oct 19, 2022 · 2 comments
Closed

Big json arrays? #531

Quafadas opened this issue Oct 19, 2022 · 2 comments
Milestone

Comments

@Quafadas
Copy link

It would appear that a smithy client which requests a large JSON array, is presented with this response.

PayloadError(.data, expected = list, message=Input list exceeded max arity of 1024)

According to a DM with @Baccata , the most likely reason, is that the parser is intentionally set, to limit the parsing of large arrays for security reasons.

Proposed Outcome: Offer a mechansim via which the client would attempt to parse this unreasonably large array. Perhaps by offering a "turn off the security" flag?

@yisraelU
Copy link
Contributor

yisraelU commented Dec 8, 2022

@Quafadas can you pull latest version and verify that the new feature allowing passing in max arity solves your problem

@Baccata Baccata closed this as completed Dec 9, 2022
@Quafadas
Copy link
Author

@yisraelU Thanks for the mention - I'm confident... that this will indeed solve my problem...
Unfortunately it's going to be a while before I can really look... as I have to look after something else for the next 6 weeks or so and this would need a little more effort than I can put in right now to migrate to 0.17... but I'm super excited about this - unblocks some really cool stuff for me. Thankyou again...

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

3 participants