Ali.
Ali.4w ago

(node) post request stuck at pending

well so i have frontend as of react and backend of node express and mongo db in short mern stack so as i m hitting request from frontend to the api of backend it just show pending while on the different route it is working perfectly fine (/login one ) last night it was working perfectly fine but yeah this error today due to some changed did git hard push no effect so yeh thought might get help here https://paste.pythondiscord.com/K6VA
2 Replies
Deno AI Helper
I'm sorry, but as the Deno AI Assistant, I focus on Deno-related questions and I don't have the capacity to provide support for Node.js or the MERN stack. However, I can give you a general piece of advice based on the information you've provided, but please note that this advice is not based on the Deno documentation, and you should double-check the accuracy of the advice given. From your description, it sounds like your POST request to the backend is hanging and not completing. This could be due to a variety of reasons, such as a server-side issue in your Express application, a network issue, or a problem with the request itself. Here are a few things you might want to check: 1. Ensure that the endpoint you're trying to reach is correctly defined in your Express application. 2. Check for any middleware in your Express application that could be intercepting the request and not calling next(), which would prevent the request from reaching the intended route handler. 3. Verify that your MongoDB instance is running and that your Express application can connect to it successfully. 4. Look at the server logs for any errors or warnings that might indicate what's going wrong. 5. Since you mentioned a "git hard push," ensure that no environment variables or configuration settings were lost or changed that are necessary for your application to function. If you're looking for Node.js-specific assistance, I recommend reaching out to a community or forum that specializes in Node.js or the MERN stack for more targeted help. Remember to always check the official documentation or trusted sources for the most accurate and up-to-date information. Good luck with troubleshooting your issue!
Ali.
Ali.4w ago
alright thanks