Skip to content

Facing problem when i am trying to send patch, put, and delete request on the json-server #1637

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

Open
harsh-vankar815 opened this issue Apr 6, 2025 · 1 comment

Comments

@harsh-vankar815
Copy link

i used axios to send requests on the json server, get and post requests are working correctly but when i am trying to send put, patch, and delete request it will gives me an error which is 404 not found. How can I solve this problem, and I think this problem can be inside of the json-server package. Please give me the all ways to solve this problem in my react application. I created json server by using this command "npx create json-server -p 3000 -w json/db.json"

@kidanekalM
Copy link

check that you have created and initialized your db.json file first

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

2 participants