[英]Could not proxy request from localhost:3000 to localhost:7000 ReactJs
I provided an api to my react app, it was working fine, but suddenly it stopped working. 我为我的反应应用程序提供了一个api,它工作正常,但突然它停止了工作。 in my client (React app) package.json
在我的客户端(React app)package.json
"proxy": "http://localhost:7000"
now it tell me this error message: Could not proxy request /api/users/signup from localhost:3000 to http://localhost:7000 . 现在它告诉我这个错误消息:无法从localhost:3000代理请求/ api / users / signup到http:// localhost:7000 。 thanks in advance.
提前致谢。
Maybe you created a socket and didn't free the port afterwards ? 也许你创建了一个套接字并且之后没有释放端口? This may happen if your app crashes.
如果您的应用崩溃,可能会发生这种情况。 When you launch it again, the port may be occupied and unavailable, it happened to me a few times.
当你再次启动它时,端口可能被占用并且不可用,它发生在我身上几次。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.