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

Getting 'STDIN input is not available on Windows' when running firebase database:set #2381

Closed
yonglid opened this issue Jun 20, 2020 · 4 comments

Comments

@yonglid
Copy link

yonglid commented Jun 20, 2020

[REQUIRED] Environment info

firebase-tools: 8.4.3 (firebase tools --version)

Platform: Windows

[REQUIRED] Test case

An example of a database.seed.json :

{
  "taxonomies" : {
    "food" : "1",
    "housing" : "1"
  }
}
  1. firebase login
  2. firebase use --add
  3. firebase deploy --only database
  4. firebase database:set / database.seed.json this didn't work, so switched to: firebase database:set //database.seed.json for Windows

[REQUIRED] Steps to reproduce

An example of a database.seed.json :

{
  "taxonomies" : {
    "food" : "1",
    "housing" : "1"
  }
}
  1. firebase login
  2. firebase use --add
  3. firebase deploy --only database
  4. firebase database:set / database.seed.json this didn't work, so switched to: firebase database:set //database.seed.json for Windows

run firebase database:set //database.seed.json (can be any json file)

[REQUIRED] Expected behavior

TO seed the data

[REQUIRED] Actual behavior

Error: STDIN input is not available on Windows.

[2020-06-20T16:00:08.875Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2020-06-20T16:00:08.878Z] > authorizing via signed-in user
[2020-06-20T16:00:08.879Z] [iam] checking project shelterhacks-bc1d9 for permissions ["firebase.projects.get","firebasedatabase.instances.update"]
[2020-06-20T16:00:08.883Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/shelterhacks-bc1d9:testIamPermissions
 {"permissions":["firebase.projects.get","firebasedatabase.instances.update"]}
[2020-06-20T16:00:09.241Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Sat, 20 Jun 2020 16:00:08 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","server-timing":"gfet4t7; dur=233","alt-svc":"h3-28=\":443\"; ma=2592000,h3-27=\":443\"; ma=2592000,h3-25=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2020-06-20T16:00:09.245Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/shelterhacks-bc1d9

[2020-06-20T16:00:09.444Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Sat, 20 Jun 2020 16:00:08 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-28=\":443\"; ma=2592000,h3-27=\":443\"; ma=2592000,h3-25=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q049=\":443\"; ma=2592000,h3-Q048=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
? You are about to overwrite all data at https://shelterhacks-bc1d9.firebaseio.com/database.seed.json. Are you sure? Yes



Error: STDIN input is not available on Windows.
@google-oss-bot
Copy link
Contributor

This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

@yonglid yonglid changed the title On Windows, getting 'STDIN input is not available on Windows' when running firebase database:set Getting 'STDIN input is not available on Windows' when running firebase database:set Jun 20, 2020
@samtstern
Copy link
Contributor

This seems like a duplicate of this issue:
#1221

Can you try checking your Node version (node --version) and making sure you're on 8.15.0 or higher?

@samtstern samtstern added the Needs: Author Feedback Issues awaiting author feedback label Jun 22, 2020
@google-oss-bot
Copy link
Contributor

Hey @yonglid. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link
Contributor

Since there haven't been any recent updates here, I am going to close this issue.

@yonglid if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

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

3 participants