小程序wxrequest调用webservcie返回statusCode:500

微信小程序,微信公开课,小程序wxrequest调用webservcie返回statusCode:500 微信公开课

如何看待微信公开课小程序热门讨论「小程序wxrequest调用webservcie返回statusCode:500」
摘要:小程序wxrequest调用webservcie返回statusCode:500
展开:调用webservice后进入到success:function了,但是没有返回到预期的数据errMsg:request:ok,data:!DOCTYPEhtml↵html↵head↵titl…le↵↵br↵↵/body↵/html↵,statusCode:500}data:!DOCTYPEhtml↵html↵head↵title运行时错误/title↵metanameviewportcontentwidthdevicewidth/↵style↵body{fontfamily:Verdana;fontweight:normal;fontsize:.7em;color:black;}↵p{fontfamily:Verdana;fontweight:normal;color:black;margintop:5px}↵b{fontfamily:Verdana;fontweight:bold;color:black;margintop:5px}↵H1{fontfamily:Verdana;fontweight:normal;fontsize:18pt;color:red}↵H2{fontfamily:Verdana;fontweight:normal;fontsize:14pt;color:maroon}↵pre{fontfamily:Consolas,LucidaConsole,Monospace;fontsize:11pt;margin:0;padding:0.5em;lineheight:14pt}↵.marker{fontweight:bold;color:black;textdecoration:none;}↵.version{color:gray;}↵.error{marginbottom:10px;}↵.expandable{textdecoration:underline;fontweight:bold;color:navy;cursor:hand;}↵@mediascreenand(maxwidth:639px){↵pre{width:440px;overflow:auto;whitespace:prewrap;wordwrap:breakword;}↵}↵@mediascreenand(maxwidth:479px){↵pre{width:280px;}↵}↵/style↵/head↵↵bodybgcolorwhite↵↵spanH1“/”应用程序中的服务器错误。hrwidth100%size1colorsilver/H1↵↵h2i运行时错误/i/h2/span↵↵fontfaceArial,Helvetica,Geneva,SunSansRegular,sansserif↵↵b说明:/b服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。但可以通过在本地服务器计算机上运行的浏览器查看。↵brbr↵↵b详细信息:/b若要使他人能够在远程计算机上查看此特定错误消息的详细信息,请在位于当前Web应用程序根目录下的“web.config”配置文件中创建一个lt;customErrorsgt;标记。然后应将此lt;customErrorsgt;标记的“mode”特性设置为“Off”。brbr↵↵tablewidth100%bgcolorffffcc↵tr↵td↵codepre↵↵lt;!Web.Config配置文件gt;↵↵lt;configurationgt;↵lt;system.webgt;↵lt;customErrorsmodequot;Offquot;/gt;↵lt;/system.webgt;↵lt;/configurationgt;/pre/code↵↵/td↵/tr↵/table↵↵br↵↵b注释:/b通过修改应用程序的lt;customErrorsgt;配置标记的“defaultRedirect”特性,使之指向自定义错误页的URL,可以用自定义错误页替换所看到的当前错误页。brbr↵↵tablewidth100%bgcolorffffcc↵tr↵td↵codepre↵↵lt;!Web.Config配置文件gt;↵↵lt;configurationgt;↵lt;system.webgt;↵lt;customErrorsmodequot;RemoteOnlyquot;defaultRedirectquot;mycustompage.htmquot;/gt;↵lt;/system.webgt;↵lt;/configurationgt;/pre/code↵↵/td↵/tr↵/table↵↵br↵↵/body↵/html↵errMsg:request:okstatusCode:500具体代码如下,求大神指点!wx.request({url:https://www.axiaoshuo.cn/MNWebService.asmx/Test,data:{a:3,b:5},method:POST,//OPTIONS,GET,HEAD,POST,PUT,DELETE,TRACE,CONNECTheader:{contenttype:application/json},//设置请求的headersuccess:function(res){//successconsole.log(success)console.log(res)that.setData({motto:res.data.d})//这里是that不是this},fail:function(res){//failconsole.log(res)},complete:function(){//complete//console.log(complete)}})了解更多

「小程序wxrequest调用webservcie返回statusCode:500」热门讨论订阅

微信小程序,微信公开课,小程序wxrequest调用webservcie返回statusCode:500
订阅小程序

方法1:微信扫描微信公开课小程序码即可订阅热门讨论「小程序wxrequest调用webservcie返回statusCode:500」

方法2:微信搜索微信公开课小程序名称进入,即可订阅热门讨论「小程序wxrequest调用webservcie返回statusCode:500」

方法3:微信网页访问即速商店,长按识别微信公开课小程序码即可订阅热门讨论「小程序wxrequest调用webservcie返回statusCode:500」

微信公开课小程序热门讨论「小程序wxrequest调用webservcie返回statusCode:500」由微信公开课原创摘录于微信小程序商店shop.jisuapp.cn,转载请注明出处。

微信公开课热门讨论「小程序wxrequest调用webservcie返回statusCode:500」由微信公开课开发者向微信用户提供,并对本服务内容、数据资料及其运营行为等真实性、合法性及有效性承担全部责任。