[uni-upgrade-center/ac1cc3191731661051664140899/112ms/ERROR] Unexpected token < in JSON at position 0 (data json format: "<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n"), POST https://api-inner.next.bspapp.com/server 502 (connected: true, keepalive socket: false, socketHandledRequests: 1, socketHandledResponses: 1)
headers: {"date":"Fri, 15 Nov 2024 08:57:32 GMT","content-type":"text/html","content-length":"166","connection":"keep-alive","via":"HTTP/1.1 SLB.239"}
Error: Unexpected token < in JSON at position 0 (data json format: "<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n"), POST https://api-inner.next.bspapp.com/server 502 (connected: true, keepalive socket: false, socketHandledRequests: 1, socketHandledResponses: 1)
headers: {"date":"Fri, 15 Nov 2024 08:57:32 GMT","content-type":"text/html","content-length":"166","connection":"keep-alive","via":"HTTP/1.1 SLB.239"}
at L.e.then.catch.e (/tmp/function/@dcloudio/serverless/lib/aliyun/uni-cloud.js:1:1611)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
请求响应状态: fail
发热更新 就每次接口改成和上个版本不兼容,就会发现总有旧版本在外面使用 更新不上来 这个如何排查 看日志有502报错 但是也不是大量的
每次感觉外面有几十台机器没有更新上 每次客服都反馈用户被接口卡住 都是没更新导致的
1 个回复
DCloud_UNI_LXH
使用的是阿里云?看上去好像是云服务尝试报的错,可以再观察观察,看一下这个错误的触发条件是什么