-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Manual modification of JSON file is a problem. #1486
Comments
Manually modifying the JSON file shouldn't result in a error. What would be the steps for me to reproduce the error? |
There are only arrays in the json file. POST /cust6 500 26.369 ms - 965 But you can't send POST requests even after that. It only improves if I delete all the data and leave only the empty blocks. This also happens if I modify the json file offline. And even if the modification does not include data modification. I do it in VS Code. |
In fact. I noticed that even if I restart the server, it does not allow me to POST to arrays that already contain data. You can only post in empty blocks until I stop snooping on the server. But if I restart it, it is no longer possible to post data in these blocks either. Is the problem that I run the controller with the -- watch db.json command? |
Format should be an array of objects (just like the {"object1":[ { "id": "1", "value": [ "data1","data2","data3"] }, ... ]} |
How can I prevent the server from detecting it as an error if I manually enter it in the JSON file? If I write in the json data, I can no longer POST. I have to delete all the data from addresses where I didn't even post.
But I don't have to delete the first data address, it allows it to remain. I don't understand how it all works.
Thus, if something happens to the json file, we cannot replace the json file containing the backup because it will not work because it is not the same file.
The text was updated successfully, but these errors were encountered: