Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socketPath not working #84

Open
uroybd opened this issue Nov 17, 2020 · 2 comments
Open

socketPath not working #84

uroybd opened this issue Nov 17, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@uroybd
Copy link

uroybd commented Nov 17, 2020

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)
@atinux atinux added the help wanted Extra attention is needed label Dec 1, 2020
@uroybd
Copy link
Author

uroybd commented Feb 16, 2021

Hi @atinux, I'm sorry to bother you, but any direction on this? Does socketPath work at all.

I've tested a little more and it is not even related to axios.

@Cheaterman
Copy link

I'd love to hear about this, as I'm also unable to use this module in general (and socketPath in particular). I tried a lot of things, but somehow Axios insists on hitting 127.0.0.1:3000 which is incorrect because Nuxt is listening on a UNIX socket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants