'In my MongoDB project i'm facing this problem: "DELETE http://localhost:5000/user/undefined 404 (Not Found)"

I am calling a DELETE request using fetch. But The request is not working. How can i solve this? Please help me!.



Solution 1:[1]

Can you try to put the params manual it is looking like you didn't send correct params into the methods (/user/undifined) the undifined mean you didn't send the id for deleting the user

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mohamad Al Zohbie