Could not proxy request /pusher/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED)

后端 未结 13 937
半阙折子戏
半阙折子戏 2020-12-09 09:48

I am trying to create a chat app using reactJS and pusher, i am getting this error-

Could not proxy request /pusher/auth from localhost:3000 to http

13条回答
  •  余生分开走
    2020-12-09 09:58

    I faced a similar issue but in Mac machine. I changed localhost to 127.0.0.1 and that worked for me.

    For windows:

    "proxy": {
      "/auth/google": {
        "target": "localhost:5000"
      }
    }
    

    For Mac:

    "proxy": {
      "/auth/google": {
        "target": "http://127.0.0.1:5000"
      }
    }
    

提交回复
热议问题