Error occurred while trying to proxy request /api/auth/checkphone?phone=2269984850 from localhost:3000 to http://localhost:8000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors) code example

Example 1: Error occurred while trying to proxy to: localhost:3000/

{
"/api": {
"target": "https://localhost:12345",
"secure": false,
"changeOrigin": true
}
}

Example 2: Error occurred while trying to proxy to: localhost:3000/

{
  "*": {
    "target": "[::1]:8080/",
    "secure": true,
    "logLevel": "debug",
    "changeOrigin": true,
    "headers": {
      "Connection": "keep-alive"
    },
    "pathRewrite": { "^/*": "" }
  }
}