Skip to content

socketPath not working #84

@uroybd

Description

@uroybd

Hi,

The socket file is present and working perfectly if I test it with curl.
However, the following config is not working:

{
  '/api': {
    changeOrigin: false,
    target: {
      socketPath: '/app/socket/backend.sock'
    },
    pathRewrite: {
      '^/api/api/': '/api/'
    }
  }
}

with the following error:

 ERROR  [Axios] Response error: connect ECONNREFUSED 127.0.0.1:3000               06:03:42

  at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions