错误的请求,但我不知道发生了什么

时间:2021-03-30 04:06:25

标签: google-fit

enter image description here

你好。我想将数据同步到 googlefit,但请求不正确,请帮助我。

{
 "error": {
 "code": 400,
 "message": "unexpected FpVal: com.google.step_count.delta [2021-03-30T03:44:33.824Z - 2021-03-30T03:44:41.824Z] [70.0] raw:com.google.step_count.delta:230168028193",
 "errors": [
   {   
   "message": "unexpected FpVal: com.google.step_count.delta [2021-03-30T03:44:33.824Z - 2021-03-30T03:44:41.824Z] [70.0] raw:com.google.step_count.delta:230168028193",
   "domain": "global",
   "reason": "invalidArgument"
   }   
 ],
 "status": "INVALID_ARGUMENT"
 }
}

1 个答案:

答案 0 :(得分:0)

com.google.step_count.delta has one field,它是一个整数 - 因为你怎么能采取小数步?

将步数作为整数传递,而不是浮点值。

相关问题