Hi everyone, so I’m having an issue where the database is returning a 204 No Content when I try to contact the API. I built a simple social media site with users, auth, posts, comments and used Node.js for the backend, and React for the frontend. The code worked seamlessly till about a week ago, I was able to log in, create a new post, like a post, and comment on it, but now every database operation that I try to perform returns a 204 No Content, even though none of the code has changed. For a little more insight no errors are being thrown, and error handling is pretty robust on both the backend and frontend. I tried creating a simplified route that doesn’t involve the database and it worked like a charm everytime I hit that endpoint. After some debugging I believe the issue lies with the database and how it’s communicating with both my frontend and Postman. I am able to access the database on MongoDBCompass though.
Please let me know your thoughts or any suggestions you might have.
Thank you very much in advance.
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Facing Slowness in Complex Mongo Query | 2 | 518 | Jun 2024 |
Memory leak in node js app | 1 | 111 | Oct 2024 |
Creating a new user on the admin database of a locally installed instance of MongoDb | 3 | 43 | Dec 2024 |
Update subdocument in array and insert new subdocument if not present in array | 0 | 25 | Dec 2024 |
How to Update Properties of a single Array Element. | 0 | 37 | Jan 24 |