-
Notifications
You must be signed in to change notification settings - Fork 26
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
The incoming YAML document exceeds the limit: 3145728 code points. #94
Comments
I have a large file, loaded as (def all-of-it (yaml/parse-stream (javaio/reader "a-file.yaml") :load-all true)) Curiously, when I evaluate it in a REPL, this one raises the exception |
@PetrGlad Can you wrap that take in a |
Sorry, it looks like a reproduction includes to attempt an operation on the sequence first, then other operations succeed. Like (def all-of-it (yaml/parse-stream (javaio/reader "a-file.yaml") :load-all true))
(doall (map identity all-cases)) ; <-- FAILS
(doall (map identity all-cases)) ; <-- OK It seems it does not matter which operation was tried first. These are evaluated in REPL, so I think |
If anyone wants to do a PR, we're open to that. It should be relatively straightforward to add:
|
Just wanted to note that the actual problem (in my case) is in the snakeyaml. I have already reported that. |
Thanks for following up @PetrGlad!
Was it this issue here?
Is there a separate SnakeYAML issue to address this too? |
Yes, that was the change. |
@PetrGlad, I don't see a SnakeYAML issue created for that either. |
I pinged Andrey and he responded:
|
@PetrGlad, FYI: because Andrey asked me to, in the spirit of being a good citizen, I went ahead and created a SnakeYAML ticket with repro. |
When read large YAML
the
code_point_limit
is needed to overwrite, but I didn’t find a way to do this with clj-yaml.How do you read large YAML files?
From slack #clj-yaml
The text was updated successfully, but these errors were encountered: