我使用Postman进行API接口测试的时候,返回了如下的错误信息,请问如何解决?是哪里的问题?
{
"timestamp": 1500368718739,
"status": 400,
"error": "Bad Request",
"exception": "org.springframework.http.converter.HttpMessageNotReadableException",
"message": "Could not read document: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: java.io.PushbackInputStream@5f175828; line: 1, column: 3]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: java.io.PushbackInputStream@5f175828; line: 1, column: 3]",
"path": "/rpc/v1/solution/unit_utterance"
}
请问secene_id和session_id怎么设置的呢?
你是怎么解决的,我也遇到了这个错误
明白了,谢谢。
您的请求有问题,请参考
curl -XPOST 'https://aip.baidubce.com/rpc/2.0/solution/v1/unit_utterance?access_token=usertoken'-H "Content-Type: application/json" -d '{"scene_id":123,"query":"test","session_id":""}'
示例代码即将上线,敬请期待