B
B
BonBon Slick2020-08-24 22:58:01
Google
BonBon Slick, 2020-08-24 22:58:01

Datasource not found or not readable: derived:com.google.step_count.delta:com.google.android.gms:estimated_steps?

POST /fitness/v1/users/me/dataset:aggregate HTTP/1.1
Host: www.googleapis.com
Content-length: 296
Content-type: application/json
Authorization: Bearer ****
{
  "aggregateBy": [{
    "dataTypeName": "com.google.step_count.delta",
    "dataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
  }],
  "bucketByTime": { "durationMillis": 86400000 },
  "startTimeMillis": 1438705622000,
  "endTimeMillis": 1439310422000
}
HTTP/1.1 403 Forbidden
Content-length: 435
X-xss-protection: 0
X-content-type-options: nosniff
Transfer-encoding: chunked
Vary: Origin, X-Origin, Referer
Server: ESF
-content-encoding: gzip
Cache-control: private
Date: Mon, 24 Aug 2020 19:51:25 GMT
X-frame-options: SAMEORIGIN
Alt-svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Content-type: application/json; charset=UTF-8
{
  "error": {
    "status": "PERMISSION_DENIED", 
    "message": "datasource not found or not readable: derived:com.google.step_count.delta:com.google.android.gms:estimated_steps", 
    "code": 403, 
    "errors": [
      {
        "reason": "forbidden", 
        "message": "datasource not found or not readable: derived:com.google.step_count.delta:com.google.android.gms:estimated_steps", 
        "domain": "global"
      }
    ]
  }
}


According to doc item 1, rule 23597, item 23587, section 23589... this link returns data from sources
https://www.googleapis.com/fitness/v1/users/me/dat...

There is also a distance, calories and steps, but without counters.

I'm trying to get according to their dock item 23576, section 235638463498672349672-9346 and the next hell find the dock steps with
{
  "aggregateBy": [{
    "dataTypeName": "com.google.step_count.delta",
    "dataSourceId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps"
  }],
  "bucketByTime": { "durationMillis": 86400000 },
  "startTimeMillis": 1438705622000,
  "endTimeMillis": 1439310422000
}


And I get the above error.

I will say right away, I saw the answer on the stack about the synchronization of accounts. Everything is fine with this, the phone and google fit use one acc, and yes, it already has steps, distance and so on on the counter.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question