Open lloydbanks opened 5 years ago
I think it's a bug. I found that making more than 3 delete requests per second causes the server to crash.
it happens with me also, did you solve it and how about custom endpoint delete all ?
I also had this problem, and solved it by removing the watch flag when starting json-server. This way the server doesn't reload automatically and all the requests are successfully handled.
db.json
{ "cart": [ { "id": 100, "count": 1 }, { "id": 101, "count": 1 } ] }
request
console
Items are removed successfully but the server crashes. Not sure if something wrong with my code or it's a bug.