nginx/error.log打印错误日志如下:[crit] 5781#0: *206 open() "/var/lib/nginx/tmp/client_body/0000000037" failed (13: Permission denied), client: xxx.xx.xx.xxx, server: xxxxxx.com, request: "POST /api/v1.0/service/image HTTP/1.1", host: "www.xxxxxxxx.com", referrer: "https://servicewechat.com/xxxxxxxxxxx/devtools/page-frame.html"
小程序端打印返回结果显示
<html>
<head><title>500 Internal Server Error</title></head>
<body bgcolor="white">
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.12.2</center>
</body>
</html>
导致无法json转义:
VM1425:1 thirdScriptError
Unexpected token < in JSON at position 0;at pages/backup/backup uploadFiles function;at api uploadFile success callback function
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()