Request failed with status code 404 AxiosError@webpack-internal:///./node_modules/axios/lib/core/AxiosError.js:23:18 settle@webpack-internal:///./node_modules/axios/lib/core/settle.js:24:12 onloadend@webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:106:66 EventHandlerNonNull*dispatchXhrRequest@webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:119:7 __webpack_exports__.default<@webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:57:10 dispatchRequest@webpack-internal:///./node_modules/axios/lib/core/dispatchRequest.js:53:10 request@webpack-internal:///./node_modules/axios/lib/core/Axios.js:136:77 forEachMethodNoData/Axios.prototype[method]@webpack-internal:///./node_modules/axios/lib/core/Axios.js:158:17 wrap@webpack-internal:///./node_modules/axios/lib/helpers/bind.js:9:15 getPostContent/<@webpack-internal:///./src/tools/FileManager.js:20:53
时间: 2023-08-21 14:07:20 浏览: 1465
这个错误信息仍然是一个 404 错误,跟之前的错误类似。它的出现可能是由于你使用 Axios 进行网络请求时,请求的 URL 不正确或者请求的资源不存在。建议你检查请求的 URL 是否正确,如果 URL 正确,那么可能是服务器端的问题,你可以尝试联系服务器管理员解决这个问题。同时,错误信息中也提到了 `FileManager.js` 文件的第 20 行,你也可以检查一下这个文件是否有问题。
相关问题
AxiosError {message: 'Request failed with status code 400', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}code: "ERR_BAD_REQUEST"config: {transitional: {…}, adapter: Array(2), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 400"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}response: {data: {…}, status: 400, statusText: '', headers: AxiosHeaders, config: {…}, …}stack: "AxiosError: Request failed with status code 400\n at settle (webpack-internal:///./node_modules/axios/lib/core/settle.js:24:12)\n at XMLHttpRequest.onloadend (webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:106:66)"[[Prototype]]: Error,前端输入了mobile的值,为什么这里的mobile=null
根据你提供的信息,我可以看出这是一个AxiosError,其中response字段包含了服务器返回的信息。400状态码通常表示客户端请求有误,服务器无法处理该请求。在你提供的信息中,response字段的data属性可能包含了服务器返回的具体错误信息。至于为什么mobile的值为null,可能是前端未正确传递该参数或者后端未能正确接收到该参数。需要更多的信息来确定问题的具体原因。
Uncaught runtime errors: × ERROR Request failed with status code 404 AxiosError: Request failed with status code 404 at settle (webpack-internal:///./node_modules/axios/lib/core/settle.js:24:12) at XMLHttpRequest.onloadend (webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:106:66)
这个错误提示表明你使用了 Axios 库发起了一个请求,但是请求的 URL 不存在,服务器无法找到你请求的资源,因此返回了一个 404 错误码。
要解决这个问题,你需要确认以下几点:
1. 检查请求的 URL 是否正确,包括协议、域名、路径等,确保与实际的服务器地址一致。
2. 确认请求的方法是否正确,例如 GET、POST、PUT 等。
3. 确认请求的参数是否正确,包括查询参数、请求体等,确保与服务器的接口文档一致。
4. 确认服务器是否正常运行,并且提供了正确的接口。可以在浏览器中尝试直接访问该 URL,查看返回的结果是否正确。
5. 使用开发者工具查看网络请求,查看是否有其他错误信息或者响应头等信息。
如果还是无法解决问题,可以提供更多的代码和错误信息,以便更好地定位问题。
阅读全文
相关推荐










