project_mern_memories icon indicating copy to clipboard operation
project_mern_memories copied to clipboard

get request is not working

Open chetna098 opened this issue 2 years ago • 1 comments

GET http://localhost:5000/posts net::ERR_CONNECTION_REFUSED How to solve this ?

chetna098 avatar Jun 20 '22 14:06 chetna098

@chetna098 Is the server running on port 5000? If not you can start by checking:

  • if the DB is connected
  • You can add an IP Address on the MongoDB atlas dashboard

Atlas only allows client connections to a cluster from entries in the project’s IP Access List. Adding an IP address will help to connect to your federated database instance and access your data.

This can be the starting point for debugging. Hope it has some clarity to figure out the ERROR.

NgatiaJeffers avatar Jul 20 '22 07:07 NgatiaJeffers