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

ERR_STRING_TOO_LONG when getting a long list of images #168

Open
otaviojacobi opened this issue Mar 29, 2024 · 0 comments · May be fixed by #169
Open

ERR_STRING_TOO_LONG when getting a long list of images #168

otaviojacobi opened this issue Mar 29, 2024 · 0 comments · May be fixed by #169

Comments

@otaviojacobi
Copy link

Hello all!

We have an application that remotely builds docker images and recently it started to fail to list all images on the host because this line fails to convert the huge buffer (over 500MB of text) into a string.

We don't actually require all the conent from the result (only the id and a few other) but docker api does not offer the possibility to "select" only the relevant fields. One other possibility would be to use https://www.npmjs.com/package/stream-json in order to parse the buffer instead of creating the string and then JSON parsing it. Would you be open to a PR adding this dependency and treating it?

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

Successfully merging a pull request may close this issue.

2 participants