问题解决了吗?
调用wx.request返回500 Internal Server Error个别手机出问题,但出问题的手机总是收到500,别的手机和开发者工具就没问题。 微信扫描本帖最后的海报,小程序手机端会发起请求,但总是收到500 Internal Server Error。 [代码]{ [代码][代码]"log"[代码][代码]: {[代码] [代码] [代码][代码]"version"[代码][代码]: [代码][代码]"1.2"[代码][代码],[代码] [代码] [代码][代码]"creator"[代码][代码]: { [代码][代码]"name"[代码][代码]: [代码][代码]"WebInspector"[代码][代码], [代码][代码]"version"[代码][代码]: [代码][代码]"537.36"[代码] [代码]},[代码] [代码] [代码][代码]"pages"[代码][代码]: [],[代码] [代码] [代码][代码]"entries"[代码][代码]: [{[代码] [代码] [代码][代码]"startedDateTime"[代码][代码]: [代码][代码]"2018-08-02T08:57:31.654Z"[代码][代码],[代码] [代码] [代码][代码]"time"[代码][代码]: 2197.000026702881,[代码] [代码] [代码][代码]"request"[代码][代码]: {[代码] [代码] [代码][代码]"method"[代码][代码]: [代码][代码]"GET"[代码][代码],[代码] [代码] [代码][代码]"url"[代码][代码]: [代码][代码]"https://708721408.wenquxingkong.xyz/weapp/share/info?scene=2"[代码][代码],[代码] [代码] [代码][代码]"httpVersion"[代码][代码]: [代码][代码]"unknown"[代码][代码],[代码] [代码] [代码][代码]"headers"[代码][代码]: [{[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Accept-Encoding"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"gzip"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"charset"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"utf-8"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"content-type"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"application/json"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"referer"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"https://servicewechat.com/wx8887e802b20d536d/0/page-frame.html"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"User-Agent"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"Mozilla/5.0 (Linux; Android 7.0; HUAWEI NXT-AL10 Build/HUAWEINXT-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.143 Crosswalk/24.53.595.0 XWEB/155 MMWEBSDK/21 Mobile Safari/537.36 MicroMessenger/6.6.7.1321(0x26060739) NetType/4G Language/zh_CN MicroMessenger/6.6.7.1321(0x26060739) NetType/4G Language/zh_CN"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"x-wx-skey"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"c0469dc84cb89bbcdbf679aa9aa802c4c8591e6b"[代码] [代码] [代码][代码]}],[代码] [代码] [代码][代码]"queryString"[代码][代码]: [[代码] [代码] [代码][代码]{[代码][代码]"name"[代码][代码]: [代码][代码]"scene"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"2"[代码] [代码] [代码][代码]}],[代码] [代码] [代码][代码]"cookies"[代码][代码]: [],[代码] [代码] [代码][代码]"headersSize"[代码][代码]: -1,[代码] [代码] [代码][代码]"bodySize"[代码][代码]: 0},[代码] [代码] [代码][代码]"response"[代码][代码]: {[代码] [代码] [代码][代码]"status"[代码][代码]: 500,[代码] [代码] [代码][代码]"statusText"[代码][代码]: [代码][代码]""[代码][代码],[代码] [代码] [代码][代码]"httpVersion"[代码][代码]: [代码][代码]"unknown"[代码][代码],[代码] [代码] [代码][代码]"headers"[代码][代码]: [{[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Connection"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"keep-alive"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Content-Length"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"21"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Content-Type"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"text/plain; charset=utf-8"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Date"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"Thu, 02 Aug 2018 08:57:34 GMT"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Server"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"nginx/1.10.2"[代码] [代码] [代码][代码]},{[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"X-Android-Received-Millis"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"1533200253838"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"X-Android-Response-Source"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"NETWORK 500"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"X-Android-Selected-Protocol"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"http/1.1"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"X-Android-Sent-Millis"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"1533200253777"[代码] [代码] [代码][代码]}],[代码] [代码] [代码][代码]"cookies"[代码][代码]: [],[代码] [代码] [代码][代码]"content"[代码][代码]: {[代码] [代码] [代码][代码]"size"[代码][代码]: 0,[代码] [代码] [代码][代码]"mimeType"[代码][代码]: [代码][代码]"x-unknown"[代码][代码],[代码] [代码] [代码][代码]"text"[代码][代码]: [代码][代码]"Internal Server Error"[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]"redirectURL"[代码][代码]: [代码][代码]""[代码][代码],[代码] [代码] [代码][代码]"headersSize"[代码][代码]: -1,[代码] [代码] [代码][代码]"bodySize"[代码][代码]: -1,[代码] [代码] [代码][代码]"_transferSize"[代码][代码]: 21[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]"cache"[代码][代码]: {},[代码] [代码] [代码][代码]"timings"[代码][代码]: {[代码] [代码] [代码][代码]"dns"[代码][代码]: -1,[代码] [代码] [代码][代码]"connect"[代码][代码]: -1,[代码] [代码] [代码][代码]"send"[代码][代码]: 0,[代码] [代码] [代码][代码]"wait"[代码][代码]: -10,[代码] [代码] [代码][代码]"receive"[代码][代码]: 2208.000026702881,[代码] [代码] [代码][代码]"ssl"[代码][代码]: -1},[代码] [代码] [代码][代码]"serverIPAddress"[代码][代码]: [代码][代码]""[代码][代码],[代码] [代码] [代码][代码]"connection"[代码][代码]: [代码][代码]"1.2"[代码] [代码] [代码][代码]}[代码] [代码] [代码][代码]][代码] [代码] [代码][代码]}[代码] [代码]}[代码] 我在服务器侧打印日志,是正常响应了的。 请帮忙看看可能是什么问题,多谢!
2021-07-12