Been trying for a few hours to get this issue fixed but cant make a post request with this error. At first i was using ng serve but then started using npm start but still got errors.
Error:
[HPM] Error occurred while trying to proxy request /api/books from localhost:4200 to http://localhost:3333 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
My proxy file:
{
"/api/*": {
"target": "https://localhost:4200",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}
Is this issue with NX Monorepo ? If yes, you are just running this command :
ng serve
In a new tab of terminal, also run the command :
ng serve api
Since both servers need to be started.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With