cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving a 404 error while trying to use the Export GPX endpoint

anbarbosa
Mt. Kenya

I am trying to utilize the Export GPX endpoint for a feature in a mobile application. However I am running into a 404 error when I actually go to use the endpoint. I know that this endpoint requires a read_all scope for private parameters which I already included in my webform url

scope=activity:read_all,profile:read_all,read_all
Simulator Screenshot - iPhone 14 - 2023-10-31 at 13.33.10.png

 This is how I have my exportGPX endpoint set up as well..

 

7 REPLIES 7

Jan_Mantau
Denali

That doesn't look like a json response for a route, I would wager this is an activity summary. What endpoint did you use to get that?

Actually I used /athlete/activities maybe thats the problem... I thought it was giving me my routes as the names lined up. Let me try /athletes/{id}/routes to see if that has a different ID

And to make things more clear: You can't use activity ids for getting the gpx or tcx file for that activity. Only  for planned routes you can get a file. The endpoint for getting the route ids  for planned routes is https://developers.strava.com/docs/reference/#api-Routes-getRoutesByAthleteId

Jan_Mantau
Denali

The json response from getting all the routes contains many different types of id fields, please make sure to use the right one.

Here is a JSON response that I am using. I took out IDs/coords for the purpose of this but I am using the ID field with the value of 67890. I am able to use other endpoints with this ID as well.

Screenshot 2023-11-02 at 4.35.11 PM.png

anbarbosa
Mt. Kenya

I tried putting the function directly inside the other function that gets routes from Strava. Using the ID directly from the JSON response and I still get a 404 error...

Jan_Mantau
Denali

Most likely is you're using a wrong id for {route_id}

Ready, Get Set, Go!

Welcome to the Community - here is your guide to help you get started!


Know how to use Community


Understand Community Settings