POST Activity - 409 Error Response

644 views
Skip to first unread message

David Baddeley

unread,
Jun 2, 2021, 7:29:59 AM6/2/21
to Strava API
I have recently noticed we are getting 409 response to some activity POST requests, the response body shows:

{"message":"error"}

Can anyone enlighten me as to what this means? The access tokens are valid and fresh

David Baddeley

unread,
Oct 19, 2021, 5:08:28 AM10/19/21
to Strava API
BUMP!

We are still experiencing these 409 Error responses from the POST /Activity endpoint (seems to be about 5-10% of requests) can anyone help? Is anyone from STRAVA here?

We first started seeing them in mid June 2021 so I assume there was an update to the API then, our integration has been live for 4/5 years previously without any issues

Thanks

Ben Coomes

unread,
Nov 14, 2021, 6:00:47 PM11/14/21
to Strava API
I can try to help. A 409 indicates that the data you're attempting to add conflicts with existing data. For example, if you provide some unique ID in a POST and then send the POST again, you should expect a 409. 

With Strava, I noticed that trying to upload an activity which would have occurred concurrently with an existing activity returns a 409. You can try this by creating two manual activities in the Strava UI: 
Activity 1: 10:00 am - 11:00 am
Activity 2: 10:30 am - 11:30 am

When you create activity 2, you will see an error page and a 409 in your browser's console. I am not certain the time conflict is the same problem you have - there might be other kinds of conflicts possible as well.
Reply all
Reply to author
Forward
0 new messages