xhr.js:251 GET http://localhost:9090/api/images/lol/act/img/js/heroList/hero_list.js 404 (Not Found) dispatchXhrRequest @ xhr.js:251 xhr @ xhr.js:49 dispatchRequest @ dispatchRequest.js:51 request @ Axios.js:148 Axios.<computed> @ Axios.js:174 wrap @ bind.js:5 created @ App.vue:23 invokeWithErrorHandling @ vue.runtime.esm.js:3017 callHook$1 @ vue.runtime.esm.js:4031 Vue._init @ vue.runtime.esm.js:5693 VueComponent @ vue.runtime.esm.js:5826 createComponentInstanceForVnode @ vue.runtime.esm.js:4544 init @ vue.runtime.esm.js:4406 createComponent @ vue.runtime.esm.js:6567 createElm @ vue.runtime.esm.js:6521 patch @ vue.runtime.esm.js:7109 Vue._update @ vue.runtime.esm.js:3765 updateComponent @ vue.runtime.esm.js:3875 Watcher.get @ vue.runtime.esm.js:3446 Watcher @ vue.runtime.esm.js:3436 mountComponent @ vue.runtime.esm.js:3892 Vue.$mount @ vue.runtime.esm.js:8772 eval @ main.js:8 ./src/main.js @ app.js:219 __webpack_require__ @ app.js:280 (匿名) @ app.js:1402 __webpack_require__.O @ app.js:326 (匿名) @ app.js:1403 (匿名) @ app.js:1405 App.vue:28 AxiosError {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}
时间: 2023-12-03 09:40:48 浏览: 251
根据错误信息,可以看出请求的地址"http://localhost:9090/api/images/lol/act/img/js/heroList/hero_list.js"返回了404错误,即资源未找到。这可能是由于以下几个原因:
1. 代理配置错误:请确保代理配置正确,即将以'/api'开头的请求转发到"https://game.gtimg.cn",并且去掉了'/api'前缀。可以检查一下代理配置是否正确。
2. 请求地址错误:请确认请求地址是否正确,确保请求的资源存在。可以在浏览器中直接访问"http://localhost:9090/api/images/lol/act/img/js/heroList/hero_list.js",看看是否能够正常获取到资源。
3. 跨域问题:如果请求地址和当前域名不同,可能会存在跨域问题。可以尝试在代理配置中添加`changeOrigin: true`选项,启用跨域请求。
请根据以上提示逐一排查问题,如果还有其他问题,请继续提问。
相关问题
xhr.js:178 POST http://localhost:8080/wedu/sys/contract/uploadIds net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION
这个错误通常表示服务器返回的响应头中有多个Content-Disposition字段,而根据HTTP规范,每个响应头字段只能有一个。这可能是由于服务器端配置或代码错误导致的。要解决这个问题,你可以检查服务器端代码,确保只有一个Content-Disposition字段被设置并返回给客户端。另外,还可以尝试清除浏览器缓存或者使用其他浏览器进行测试,以确定是否是浏览器缓存引起的问题。
xhr.js:210 POST http://localhost:9527/stage-api/auth/oauth/token 400 (Bad Request)
这个错误提示表明你的应用程序尝试向本地主机上的某个端口发送一个POST请求,该请求的目标是 /stage-api/auth/oauth/token。但是,服务器返回了一个“400 Bad Request”错误,这意味着服务器无法理解或处理请求。可能的原因包括请求格式不正确、缺少必需的参数或无效的凭据。你需要检查你的请求参数和凭据,以确定是否出现了错误。
阅读全文
相关推荐

















