Skip to main content
Question

No activity retrieved when calling /athlete/activities

  • February 27, 2025
  • 1 reply
  • 24 views

COil
Forum|alt.badge.img

Hello,

I have implemented a “synchronize” activities action on my website with a Strava connect button. So far, it works well for everybody except for one athlete.

The account is correctly associated with Strava, but when calling the /athlete/activities endpoint, nothing is returned.

When calling the endpoint for other athletes, 30 (max) activities are returned by the endpoint.

There is no error, except that the response body is an empty array.

 

REST.php on line 97:
array:4 [▼
  "headers" => array:25 [▼
    "Content-Type" => array:1 [▶]
    "Transfer-Encoding" => array:1 [▶]
    "Connection" => array:1 [▶]
    "Date" => array:1 [▶]
    "status" => array:1 [▶]
    "x-ratelimit-usage" => array:1 [▶]
    "x-ratelimit-limit" => array:1 [▶]
    "cache-control" => array:1 [▶]
    "vary" => array:1 [▶]
    "referrer-policy" => array:1 [▶]
    "x-permitted-cross-domain-policies" => array:1 [▶]
    "x-xss-protection" => array:1 [▶]
    "x-request-id" => array:1 [▶]
    "x-readratelimit-limit" => array:1 [▶]
    "x-download-options" => array:1 [▶]
    "etag" => array:1 [▶]
    "x-frame-options" => array:1 [▶]
    "x-readratelimit-usage" => array:1 [▶]
    "x-content-type-options" => array:1 [▶]
    "x-envoy-upstream-service-time" => array:1 [▶]
    "server" => array:1 [▶]
    "X-Cache" => array:1 [▶]
    "Via" => array:1 [▶]
    "X-Amz-Cf-Pop" => array:1 [▶]
    "X-Amz-Cf-Id" => array:1 [▶]
  ]
  "body" => []
  "success" => true
  "status" => 200
]

Any idea? Can it be a problem with the access token or the account privacy settings?

Edit : it seems, there is a ghost account associated, instead of the actual one :

App\Entity\Strava\Athlete {#1070 ▼
  +id: 160101215
  +profile: "avatar/athlete/large.png"
  +createdAt: null
  +updatedAt: null
}

 

Thanks. COil.

 

 

1 reply

  • 10 replies
  • March 14, 2025

@COil make sure you’ve authenticated with the correct scopes for that athlete.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings