我有Nodejs-express-postgres API,它使用sequalize ORM,它只需添加捐赠者的详细信息和获取。加法可以正常工作,但在获取时出现以下错误 SyntaxError: Unexpected token in JSO:10)N at position 0\body-parser\lib\types\\red_lines\api-server-sequalize\node_modules\raw-json.js:158:10)
at parse (E:\NodeProjects\red_line
我注意到了一件很奇怪的事情,错误启动失败了,端口8080,我的代码var bodyParser=require('body-Parser) {console.log("Your server is running on: "+ipaddress+" port:"+port);这段代码给了我错误的->
我需要将json文件传递给API,但在将JSON文件发送到API之前,我似乎需要对它做一些操作。错误是"Unable to decode JSON data“。<form name="myform" enctype="multipart/form-data" action="https://api-106.dxi.eu/ecnow.php" method="POSTeasycall" ty