TFpackageText icon indicating copy to clipboard operation
TFpackageText copied to clipboard

"value_error.jsondecode","ctx":{"msg":"Expecting property name enclosed in double quotes

Open hyorigo opened this issue 2 years ago • 1 comments

got an error as below, but I verified the data format and it does not seem to have any problem. curl -X 'POST' \ 'http://192.168.1.14:5000/api/pred' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{[ "首届草根情中日乒乓球友谊赛于年在日本横滨举行完", "文体旅游局佳兆业文化弘金地体育承办至今已举办 五届完", "克沃格尔以比击败澳大利亚名将莫顿她是继和年后第三度赢得此项赛事冠军", "手术" ] }'

{"detail":[{"loc":["body",1],"msg":"Expecting property name enclosed in double quotes: line 1 column 2 (char 1)","type":"value_error.jsondecode","ctx":{"msg":"Expecting property name enclosed in double quotes","doc":"{[\n \"首届草根情中日乒乓球友谊赛于年在日本横滨举行完\", \"文体旅游局佳兆业文化弘金地体育承办至今已举办五届完\", \"克沃格尔以比击败澳大利亚名将莫顿她是继和年后第三度赢得此项赛事冠军\", \"手术\"\n ]\n}","pos":1,"lineno":1,"colno":2}}]}%

hyorigo avatar May 07 '22 08:05 hyorigo

@hyorigo would you mind reviewing if any space on your request. BTW, you can try .../infer or /pro_cons_infer for faster prediction.

victorbai2 avatar May 22 '22 08:05 victorbai2