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

Cli output as Json throws error #121

Closed
tamalsaha opened this issue Jan 5, 2016 · 4 comments
Closed

Cli output as Json throws error #121

tamalsaha opened this issue Jan 5, 2016 · 4 comments

Comments

@tamalsaha
Copy link
Contributor

Json output using -j flag throws error. Example command below:

firebase data:push /time -P myfb -d '{"syn":{".sv":"timestamp"}}' -j
{ "status": "error", "error": "Converting circular structure to JSON" }

@jwngr jwngr added the type: bug label Feb 4, 2016
@jlgale
Copy link

jlgale commented Jul 28, 2016

$ echo 'true' | firebase --json --debug database:push /sandbox
----------------------------------------------------------------------
Command:      /usr/local/Cellar/node/6.3.0/bin/node /usr/local/bin/firebase --json --debug database:push /sandbox
CLI Version:  3.0.4
Platform:     darwin
Node Version: v6.3.0
Time:         Thu Jul 28 2016 14:45:40 GMT-0700 (PDT)
----------------------------------------------------------------------

{
  "status": "error",
  "error": "Converting circular structure to JSON"
}

I'm seeing this too, six months later. I guess nobody uses the --json option?

@mbleigh
Copy link
Contributor

mbleigh commented Jul 28, 2016

Database commands output json without the flag

On Thu, Jul 28, 2016, 2:47 PM James Gale [email protected] wrote:

$ echo 'true' | firebase --json --debug database:push /sandbox

Command: /usr/local/Cellar/node/6.3.0/bin/node /usr/local/bin/firebase --json --debug database:push /sandbox
CLI Version: 3.0.4
Platform: darwin
Node Version: v6.3.0

Time: Thu Jul 28 2016 14:45:40 GMT-0700 (PDT)

{
"status": "error",
"error": "Converting circular structure to JSON"
}

I'm seeing this too, six months later. I guess nobody uses the --json
option?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#121 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAD_t79v-7RjD217TDGebZ58TYKfRJVks5qaSNfgaJpZM4G_Lsd
.

@jlgale
Copy link

jlgale commented Jul 29, 2016

Hmmm, without the --json flag, the version I have outputs this:

Data pushed successfully

View data at: https://console.firebase.google.com/project/XXXXXXXXXX/database/data/sandbox/-KNnR16jghJzU4fn9-66

@Memeriaj
Copy link
Contributor

Memeriaj commented Jan 9, 2019

This works now

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

No branches or pull requests

5 participants