提交的数据没有问题。用api工具测试过了,但猫会报错
报错信息
{
"finalUrl": "http://localhost:3000/ymbz/add",
"readyState": 4,
"status": 400,
"statusText": "Bad Request",
"responseHeaders": "connection: keep-alive\r\ncontent-length: 93\r\ncontent-type: application/json; charset=utf-8\r\ndate: Tue, 02 Apr 2024 17:53:54 GMT\r\netag: W/\"5d-iRfbrqUfoPgaWSHtZg9KFnoQQm4\"\r\nkeep-alive: timeout=5\r\nx-powered-by: Express\r\n",
"response": "{\"message\":\"Unexpected token o in JSON at position 1\",\"error\":\"Bad Request\",\"statusCode\":400}",
"responseText": "{\"message\":\"Unexpected token o in JSON at position 1\",\"error\":\"Bad Request\",\"statusCode\":400}"
}