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

config json file is empty (all data is wiped out) #411

Open
alishefaee opened this issue Dec 29, 2022 · 3 comments
Open

config json file is empty (all data is wiped out) #411

alishefaee opened this issue Dec 29, 2022 · 3 comments

Comments

@alishefaee
Copy link

I used config json file to save my config. but I rarely sometimes encountered an empty file and I didn't know why.
Until recently this happend when electricity was gone ( or computer is unplugged ).
The config.json file exists but is empty.

"nconf": "^0.12.0"

OS:
Window 10

@mfpereira
Copy link

Hi alishefaee! I know it was a long time ago, but you discovered how to solve this problem?

It is happening to me too and we are using the lib to critical config files.

@alishefaee
Copy link
Author

@mfpereira No, I didn't

@tinwinaung
Copy link

This is an old issue and still does not work with example. I think that it is due to memory and format parameters in save function implementation. Just use save without callback function config.save(); will still work.

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

No branches or pull requests

3 participants