当前位置: 首页 > news >正文

百度网站地图模板网站公司建设网站

百度网站地图模板,网站公司建设网站,网站推广引流最快方法,wp系统网站如何做seo我试图调用一个api#xff0c;但出现错误“未处理的承诺被拒绝#xff1a;错误#xff1a;请求失败#xff0c;状态码为500”。 我不知道如何得到错误。我将api调用放在componentDidMount中。 我不确定错误是来自redux实现还是来自我的api。这就是我所谓的api。 成功登录后…我试图调用一个api但出现错误“未处理的承诺被拒绝错误请求失败状态码为500”。 我不知道如何得到错误。我将api调用放在componentDidMount中。 我不确定错误是来自redux实现还是来自我的api。这就是我所谓的api。 成功登录后我将用户名作为令牌并使用它来调用另一个api。state{username: ,semcode: [{}]}componentWillMount() {AsyncStorage.getItem(Login_token).then((token) {console.log(this is coursescreen,token);let Login_token token;this.setState({ username: Login_token });});}componentDidMount(){this.props.getSemcode(this.state.username);}componentWillReceiveProps(nextProps) {console.log(xx,nextProps);if (nextProps.semCode ! undefined) {this.setState({ semcode: nextProps.semCode });}}这是我编写动作文件的方式export const getSemcode (username) async dispatch {let param {nomatrik: username,}console.log(${helper.ROOT_URL}/result/GetListOfKodSesiSem)let code_res awaitaxios.post(${helper.ROOT_URL}/result/GetListOfKodSesiSem, param)console.log(code_res.data);if (code_res.data.length 0) {const { code } code_res.data;dispatch({ type: SEMCODE_FETCH_SUCCESS, payload: { semCode: code }});}}这是我编写减速器的方式import { SEMCODE_FETCH_SUCCESS} from ../actions/types;const INITIAL_STATE{semCode:[],}export default function (stateINITIAL_STATE, action){switch(action.type){case SEMCODE_FETCH_SUCCESS:return action.payloaddefault:return state;}}谁能帮助我错误信息从axios.post接收到错误{“ config”{“ transformRequest”{}“ transformResponse”{}“超时”0“ xsrfCookieName”“ XSRF-令牌”“ xsrfHeaderName”“ X- XSRF-TOKEN“” maxContentLength“-1” headers“{” Accept“” application / jsontext / plain / “” Content- Type“” application / json; charset utf-8“ }“ method”“ post”“ nomatrik”“ BB16160907”“ url”“ https://smp.ums.edu.my/api/result/GetListOfKodSesiSem ”“ data”“ {\\”接受\\“\\”应用程序/ json \\“\\”内容类型\\“\\”应用程序/ json \\“}”}“请求”{“ UNSENT”0“ OPENED”1“ HEADERS_RECEIVED “2” LOADING“3” DONE“4” readyState“4”状态“500”超时“0” withCredentials“true”上传“{}” _ aborted“ false“ _ hasError”false“ _ method”“ POST”“ _ response”“ {\\” Message \\“\\”发生错误。\\“}”“ _url”“ https// smp.ums.edu.my/api/result/GetListOfKodSesiSem “” _timedOut“false” _ trackingName“”未知“” _incrementalEvents“false” responseHeaders“{” Date“” 2017年12月30日星期六03:58:25 GMT“”内容长度“” 36“” X-Powered-By“” ARR / 3.0“” X-AspNet-Ve rsion“” 4.0.30319“” Expires“”-1“” Content-Type“” application / json; charset utf-8”“服务器”“ Microsoft-IIS / 10.0”“编译指示”“ no-cache”“ Cache-Control”“ no-cache”}“ _ requestId”null“ _ headers” “{” accept“”应用程序/ json文本/纯文本 / “”内容类型“”应用程序/ json; charset utf-8“}” _ responseType“”“” _ sent“true “ _ lowerCaseResponseHeaders”{“ date”“星期六2017年12月30日03:58:25 GMT”“ content-length”“ 36”“ x-powered by”“ ARR / 3.0”“ x -aspnet-version“” 4.0.30319“” expires“”-1“” content-type“” application / json; charset utf-8“”服务器“” Microsoft-IIS / 10.0“” pragma“”无缓存“”缓存控制“”无缓存“}” _ subscriptions“[]” responseURL“” https://smp.ums.edu.my/api/result/GetListOfKodSesiSem “}” response“{” data“{” Message“”发生错误。“}”状态“ 500“ headers”{“ date”“ Sat30 Dec 2017 GMT”“ content-length”“ 36”“ x-powered by”“ ARR / 3.0” “ x- aspnet-version”“ 4.0.30319”“ expires”“-1”“ content-type”“ application / json; charset utf-8“”服务器“” Microsoft-IIS / 10.0“” pragma“” no-cache“” cache-control“” no-cache“}” config“{” transformRequest“ {}“ transformResponse”{}“超时”0“ xsrfCookieName”“ XSRF-TOKEN”“ xsrfHeaderName”“ X-XSRF-TOKEN”“ maxContentLength”-1“标题” {“ Accept”“应用程序/ json文本/纯文本 / ”“ Content-Type”“ application / json; charset utf-8”}“ method”“ post”“ nomatrik”“ BB16160907 “” url“” https://smp.ums.edu.my/api/result/GetListOfKodSesiSem “” data“” {\\“ Accept \\”\\“ application / json \\”\\“ Content- Type \\“\\” application / json \\“}”}“ request”{“ UNSENT”0“ OPENED”1“ HEADERS_RECEIVED”2“ LOADING”3“ DONE”4 “ readyState”4“ status”500“ timeout”0“ withCredentials”true“ upload”{}“ _ aborted”false“ _ hasError”false“ _ method”“ POST” “ _ response”“ {\\”消息\\“\\”发生错误。\\“}”“ _url”“ https://smp.ums.edu.my/api/result/GetListOfKodSesiSem ”“ _timedOut“false” _ trackingName“”未知“” _ incrementalEvents“false” responseHeaders“{” Date“” Sat30 Dec 2017 03:58:25 GMT“” Content- Length“” 36“” X-Powered-By“” ARR / 3.0“” X-AspNet- Version“” 4.0.30319“” Expires“”-1“” Content-Type “” application / json; charset utf-8”“服务器”“ Microsoft-IIS / 10.0”“编译指示”“ no-cache”“ Cache-Control”“ no-cache”}“ _ requestId”null“ _ headers” “{” accept“”应用程序/ json文本/纯文本 / “”内容类型“”应用程序/ json; charset utf-8“}” _ responseType“”“” _ sent“true “ _ lowerCaseResponseHeaders”{“ date”“星期六2017年12月30日03:58:25 GMT”“ content-length”“ 36”“ x-powered by”“ ARR / 3.0”“ x -aspnet-version“” 4.0.30319“” expires“”-1“” content-type“” application / json; charset utf-8“”服务器“” Microsoft-IIS / 10.0“” pragma“”无缓存“”缓存控制“”无缓存“}” _ subscriptions“[]” responseURL“” https://smp.ums.edu.my/api/result/GetListOfKodSesiSem “}}}登录操作export const attemptLogin (username, password) async dispatch {let param {txtNomatrik: username,txtPwd: password,public_key: helper.PUBLIC_KEY,secret_key: helper.SECRET_KEY}console.log(${helper.ROOT_API_URL}/v1/basic/ad/std/login)let login_res awaitaxios.post(${helper.ROOT_API_URL}/v1/basic/ad/std/login, param)console.log(login_res.data);await AsyncStorage.setItem(jwtToken,login_res.data.token);if (login_res.data.status Successful login) {const { login } login_res.data;dispatch({ type: LOGIN_SUCCESS});}}
http://www.pierceye.com/news/559262/

相关文章:

  • 撰写网站建设技术解决方案招聘平面设计
  • 网站的数据备份和恢复我想开网站
  • 网站建设情况报告范文wordpress用户注册提醒
  • 湛江商城网站制作公司闵行建设机械网站
  • 做网站seo赚钱吗平面广告设计作品集
  • 购物中心网站建设六安政务中心网站
  • 做网站公司赚钱吗?抖音小程序推广怎么挂才有收益
  • 滁州网站建设建设银行租房平台网站6
  • h5自适应网站模板下载阿里云域名注册好了怎么做网站
  • 德州做网站多少钱网站实现搜索功能
  • 帝国cms7.0网站搬家换域名换空间等安装教程万网云虚拟主机上传网站
  • 网站建设推广接单语wordpress 所有文章
  • 申请域名后怎么做网站网站建设与维护中国出版社
  • 洛阳做网站那家好课程网站建设开题报告
  • 到哪里建网站商务网站建设学期总结
  • 铜陵app网站做营销招聘网站开发公司需要投入什么资源
  • 建购物的网站需要多少钱wordpress不显示头像
  • 如何做一个个人网站长春网站建设wang
  • 湖南省做网站的网站资讯建设
  • 滨江网站建设制作如何建设网站方便后期维护
  • dedecms手机网站插件wordpress模板中文
  • 网站建设合同封面模板下载天津专业网站设计
  • 毕业设计网站做几个2345浏览器网页版
  • 南阳市网站建设国家建设协会工程质量分会网站
  • 苗木网站开发需求自己做网站转发新闻违法么
  • 招商网站建设解决方案wordpress页面转移
  • 门户网站开发方案文档做网站切片
  • 中国房地产新闻关键词seo排名优化如何
  • 网站大型网页游戏上海装修公司排名统帅
  • hostinger建站wordpress互联网营销方案策划