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

运行不起来啊,请补充一下详细的代理设置方法可以吗? #3

Open
oovwall opened this issue Aug 18, 2017 · 11 comments

Comments

@oovwall
Copy link

oovwall commented Aug 18, 2017

:9999/users/userInfo Failed to load resource: the server responded with a status of 504 (Gateway Timeout)
createError.js?f777:16 Uncaught (in promise) Error: Request failed with status code 504
at createError (createError.js?f777:16)
at settle (settle.js?199f:18)
at XMLHttpRequest.handleLoad (xhr.js?14ed:77)

@yucccc
Copy link
Owner

yucccc commented Aug 19, 2017

// 如果运行出现代理错误 请确保 config 文件下 index.js proxyTable代理正确

// 直接运行代理应为
http://mall.yucccc.com:3333

// 通过运行node-api请求本地api代理应为
http://127.0.0.1:3333

@sunjunlu
Copy link

install 之后修改端口,然后再run dev就好了

@Roberto-Wong
Copy link

Roberto-Wong commented Feb 1, 2018

app.js:999 POST http://localhost:8888/user/userInfo 404 (Not Found)
dispatchXhrRequest @ app.js:999
xhrAdapter @ app.js:833
dispatchRequest @ app.js:1406
Promise resolved (async)
request @ app.js:1225
Axios.(anonymous function) @ app.js:1245
wrap @ app.js:1642
(anonymous) @ app.js:29625
F @ app.js:4534
fetchPost @ app.js:29624
userInfo @ app.js:29574
(anonymous) @ app.js:29676
iterator @ app.js:17012
step @ app.js:16786
runQueue @ app.js:16794
confirmTransition @ app.js:17041
transitionTo @ app.js:16943
init @ app.js:17568
beforeCreate @ app.js:15609
callHook @ app.js:20884
Vue._init @ app.js:22545
Vue$3 @ app.js:22648
./src/main.js @ app.js:29698
webpack_require @ app.js:708
fn @ app.js:113
0 @ app.js:29984
webpack_require @ app.js:708
(anonymous) @ app.js:806
(anonymous) @ app.js:809
app.js:1337 Uncaught (in promise) Error: Request failed with status code 404

// 大佬,好奇怪啊! 代理配置设置成了:http://mall.yucccc.com:3333 还是请求不成功啊!

// 请问除了config 文件下 index.js proxyTable代理 设置外,还需要配置什么地方吗?

@yucccc
Copy link
Owner

yucccc commented Feb 1, 2018 via email

@SummerGC
Copy link

我也是在项目启动的时候遇到了问题,报Uncaught (in promise) Error: timeout of 5000ms exceeded 请问是什么回事啊 求助、1!!!

@SummerGC
Copy link

我直接install完了然后启动项目的时候是运行不起来的,而且我也不清楚本地的那个代理 希望您可以加我的QQ54423923 希望得到您的帮助 万分感谢!!!

@yucccc
Copy link
Owner

yucccc commented Mar 15, 2018

麻烦把错误贴出来 @SummerGC

@SummerGC
Copy link

image
image
我请求的是线上,但是项目起步来了 我的配置出现了是么错误 吗

@yucccc
Copy link
Owner

yucccc commented Apr 11, 2018

@SummerGC 少了个 ,

@pudi2022
Copy link

什么时候有个介绍文档,我们也好学习学习

@itbainianmei
Copy link

项目运行之后,接口504,应该是node服务没启动,但又没找到这个项目如何启动后端服务的说明,求助楼主~

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

7 participants