'Mongo Connection keeps closing

This A console log

GET http://localhost:5000/api/goals/ Error: connect ECONNREFUSED 127.0.0.1:5000 Request Headers User-Agent: PostmanRuntime/7.29.0 Accept: / Postman-Token: 508773a0-7900-49bb-932d-1a7ada6c3101 Host: localhost:5000 Accept-Encoding: gzip, deflate, br Connection: keep-alive



Solution 1:[1]

The same issue happened to me, I just had to run npm start on my command line to run the project before creating the GET request.

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 DharmanBot