Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Patch request Error, json-server - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
3 replies
francis
Patch request Error, json-server
Anyone can help me what is the problem of this
:
The get request is working using the user
_num property as identifier and not the id
. but when i use it in patch it returns 404 not found
Get Request
:
axios
.get
(
'
http://localhost:3000/users?user_num=US24-18
'
)
.then
(function
(response
)
{
/
/ handle success
alert
(
'sucess
'
)
console
.log
(response
)
;
}
)
.catch
(function
(error
)
{
/
/ handle error
console
.log
(error
)
;
}
)
Patch
:
axios
.patch
(
'
http://localhost:3000/users?user_num=US24-18
'
,
{
userStatus
:
'active
'
}
)
.then
(function
(response
)
{
/
/ handle success
console
.log
(response
)
;
}
)
.catch
(function
(error
)
{
/
/ handle error
console
.log
(error
)
;
}
)
;
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
npm json-server
KP-C
Kevin Powell - Community / back-end
2y ago
JSON.parse unexpected error
KP-C
Kevin Powell - Community / back-end
3y ago
Getting an error when resending the get request
KP-C
Kevin Powell - Community / back-end
16mo ago