Skip to content

On database:set: Error: Path must begin with / #231

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

Closed
PAK90 opened this issue Nov 5, 2016 · 2 comments
Closed

On database:set: Error: Path must begin with / #231

PAK90 opened this issue Nov 5, 2016 · 2 comments
Labels
polish Small feature requests type: bug

Comments

@PAK90
Copy link

PAK90 commented Nov 5, 2016

Running this command: firebase database:set --project MyProject / myJsonData.json gives me the error: Path must begin with /. Which it does. I want to erase existing data in the root of my project and upload my new json. Tried putting the / in quotes (" and ') but no luck.

@PAK90
Copy link
Author

PAK90 commented Nov 5, 2016

Turns out the answer is to put // as the path. Now I get an Unexpected error while setting data, but that's another issue.

@dtoki
Copy link

dtoki commented Dec 9, 2016

This worked for me.
firebase database:set //new_node my-data.json
This made a new node called new_node in the database for the project that I'm initialized too and uploaded the json data to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
polish Small feature requests type: bug
Projects
None yet
Development

No branches or pull requests

4 participants