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

Could not proxy request /api/user/login from localhost:8000 to http://localhost:9527/. #28

Open
weiky-wakey opened this issue Apr 16, 2020 · 8 comments

Comments

@weiky-wakey
Copy link

这个情况怎么解决啊

@weiky-wakey weiky-wakey changed the title Could not proxy request /api/user/login from 192.168.0.169:8000 to http://localhost:9527/. Could not proxy request /api/user/login from localhost:8000 to http://localhost:9527/. Apr 16, 2020
@weiky-wakey
Copy link
Author

前端登录的时候显示密码错误,在cmd里显示 Could not proxy request /api/user/login from localhost:8000 to http://localhost:9527/,再网上查了很多都找不到解决方法

@lsgwr
Copy link
Owner

lsgwr commented Apr 18, 2020

https://github.com/19920625lsg/spring-boot-online-exam/blob/master/frontend/exam/vue.config.js#L91

这里配置地前端到后端的代理,要和后端项目里面的application.yml的配置对应

@weiky-wakey
Copy link
Author

server:
port: 9527 # 这个端口要和vue项目里vue.config.js里的devServer里面配置的相同

这个是对的呀,但是还是不行

@sakura-szy
Copy link

解决了么???

@RobinUgly
Copy link

Proxy error: Could not proxy request /api/auth/2step-code from 198.211.23.195:8000 to http://localhost:9734.
See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
同问,
请求 URL: http://198.211.23.195:8000/api/user/login
请求方法: POST
状态代码: 500 Internal Server Error
远程地址: 198.211.23.195:8000
vue network Network: unavailable

@YTSakura
Copy link

我也是这个问题 后端也访问不进去 有解决方案了吗?

@Ailedra
Copy link

Ailedra commented Jan 4, 2022

我也是这个问题 请问解决了吗

@Ailedra
Copy link

Ailedra commented Jan 4, 2022

我也是这个问题 后端也访问不进去 有解决方案了吗?
请问你解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants