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

后端 未结 13 902
半阙折子戏
半阙折子戏 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 10:16

    If you can't connect to localhost on port 5000 via telnet (you can download and use PuttY if you don't have telnet installed), then that means that server isn't running.

    If you're using a Windows machine, go to your package.json for the server that is running on port 5000 and change this line:

    "start": "./node_modules/.bin/concurrently \"./node_modules/.bin/nodemon\" \"npm run client\"",
    

    To this:

    "start": "./node_modules/.bin/concurrently \"npm run server\" \"npm run client\"",
    

    Watch your build messages and you should see something similar to the following:

    [0] 

提交回复
热议问题