-
Notifications
You must be signed in to change notification settings - Fork 903
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
firebase cli --json output is truncated to 64000 bytes when piped to another command #3286
Labels
Comments
I can still see this happening. I'm not entirely sure why it's happening, but it should be something we can address. I'll do a little more digging at some point. |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[REQUIRED] Environment info
firebase-tools: 9.10.0
Platform: Ubuntu 20.04
[REQUIRED] Test case
With a project where this outputs more than 64KB, run:
This is failing for me, with the output truncating at 64000 bytes
[REQUIRED] Steps to reproduce
Enable several Firebase extensions in a project
Run a command that pipes the json output to another command, eg:
firebase ext:list --json | jq
(or maybe run any firebase cli command that supports --json output, and produces > 64KB).
[REQUIRED] Expected behavior
Valid json should be piped.
[REQUIRED] Actual behavior
When piped to another command the JSON seems to be terminated at 64000.
Using the
unbuffer
command seems to workaround this, but ideally this wouldn't be required.eg, this works as expected:
The text was updated successfully, but these errors were encountered: