这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@johncarter-phntm

Description

@johncarter-phntm

[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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions