AI助手支持GPT4.0
真机调试wx.request失败,无响应?Real machine debugging wx.request failed, no response?
真机调试wx.request失败,无响应?
1、已在小程序后台配置好了服务器域名。
2、服务器域名已经部署SSL证书。且SSL证书是443端口,且TLS目前是1.3,且域名已经ICP备案可查。
用postman和浏览器可访问https://xx.com/apixx/xx,全都正常。传参及返回都正常,在微信小程序开发工具内的模拟器内也一切正常,所有接口、数据、流程全都没问题。
现在开发工具内一切正常,在开发工具内把“不校验域名、SSL、TLS”的勾去掉,也没有问题。
3、只有一点特殊,服务器域名是裸域名。一般是https://www.xx.com,目前这个是https://xx.com
现在开发工具内一切正常,在开发工具内把“不校验域名、SSL、TLS”的勾去掉,也没有问题。
但目前使用真机调试、以及预览,wx.request无响应!!
目前用到了百度地图的接口,把百度地图的接口域名放到小程序后台的服务器域名,在真机调试下是可以调用。
目前怀疑是SSL证书,或者裸域名会不会有什么影响???请问哪位大神帮忙看看。另外有没有用过裸域名的朋友??裸域名有影响吗?
1. The server domain name has been configured in the applet background. 2. The server domain name has already deployed SSL certificate. The SSL certificate is port 443, the TLS is currently 1.3, and the domain name has been recorded in ICP. Accessible with postman and browser https://xx.com/apixx/xx , all normal. The transmission, participation and return are normal, and everything is normal in the simulator in the wechat applet development tool. All interfaces, data and processes are OK. Now everything is normal in the development tool. There is no problem removing the check box of "do not verify domain name, SSL and TLS" in the development tool. 3. There is only one special point. The server domain name is a bare domain name. Generally https://www.xx.com , this is https://xx.com Now everything is normal in the development tool. There is no problem removing the check box of "do not verify domain name, SSL and TLS" in the development tool. But at present, real machine debugging and preview are used, Wx No response to request!! At present, the interface of Baidu map is used. Put the interface domain name of Baidu map into the server domain name in the background of the applet, which can be called under real machine debugging. At present, it is suspected that SSL certificate or bare domain name will have any impact??? May I ask which God can help you. Have you ever used another domain name?? Does the naked domain name have an impact?
真机调试,连电脑,wx.request 有错误返回吗