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

firebase cli --json output is truncated to 64000 bytes when piped to another command #3286

Closed
johncarter-phntm opened this issue Apr 16, 2021 · 1 comment · Fixed by #5310 or #6359
Closed

Comments

@johncarter-phntm
Copy link

johncarter-phntm commented Apr 16, 2021

[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:

firebase ext:list --json | jq

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:

unbuffer firebase ext:list --json | jq
@abeisgoat abeisgoat self-assigned this Dec 6, 2021
@bkendall
Copy link
Contributor

bkendall commented Mar 8, 2022

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.

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