我正在尝试使用fetch调用上传一个图像,并且我一直收到以下错误:
Network request failed
at node_modules\whatwg-fetch\dist\fetch.umd.js:535:17 in setTimeout$argument_0
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:123:14 in _callTimer
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:379:16 in callTim
我刚接触React Native和Axios,我正在尝试构建一个身份验证系统,我的API (在Laravel中创建)在Postman中运行良好,当我测试整个应用程序并尝试登录时,我收到以下错误: [Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'error.response.data')]
* src\AuthProvider.js:36:36 in axios.post.then._catch$argument_0
- node_modules\react-nat
我到目前为止所做的事:
我已经将我的网站.net框架4.7.1添加到IIS中,我浏览了这个网站并在上工作,我将所有的web文件都添加到了www.root中。
我有一个值控制器,它扩展了Api控制器:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace NewsFeedWebApi.Controllers