vue-mall icon indicating copy to clipboard operation
vue-mall copied to clipboard

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

Open oovwall opened this issue 7 years ago • 11 comments

: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)

oovwall avatar Aug 18 '17 08:08 oovwall

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

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

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

yucccc avatar Aug 19 '17 07:08 yucccc

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

sunjunlu avatar Oct 25 '17 09:10 sunjunlu

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代理 设置外,还需要配置什么地方吗?

Roberto-Wong avatar Feb 01 '18 00:02 Roberto-Wong

配置之后有没重启项目 启动的时候有没显示转发 或者查看mall.yucccc.com是否还在正常运行

| | cyt 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2018年02月01日 08:54,Roberto Wong 写道:

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代理 设置外,还需要配置什么地方吗?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

yucccc avatar Feb 01 '18 01:02 yucccc

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

SummerGC avatar Mar 14 '18 13:03 SummerGC

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

SummerGC avatar Mar 14 '18 14:03 SummerGC

麻烦把错误贴出来 @SummerGC

yucccc avatar Mar 15 '18 08:03 yucccc

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

SummerGC avatar Apr 11 '18 11:04 SummerGC

@SummerGC 少了个 ,

yucccc avatar Apr 11 '18 11:04 yucccc

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

pudi2022 avatar Apr 17 '18 04:04 pudi2022

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

itbainianmei avatar Nov 06 '18 09:11 itbainianmei