Skip to main content
Solved

Find the source of, and simulate, activities with a "null" map


Forum|alt.badge.img

Hi,

I support a website that, via the Strava API, allows our users to sync their activities from Strava into our system.

We have an occasional error with activities not syncing properly, and I have a suspicion it is related to an activity being returned to us with a "null" value for the map node.

Here is a snippet of the resulting JSON of a call to getActivityById():

...
"athlete_count": 1,
"photo_count": 0,
"map": null,
"trainer": true,
"commute": false,
"manual": false,
...

 

Here is a snippet of a test activity I added for myself via the Strava website, with no map data associated:
...
"athlete_count": 1,
"photo_count": 0,
"map": {
  "id": "a7974877761",
  "summary_polyline": "",
  "resource_state": 2
},
"trainer": false,
"commute": false,
...
 
Note how mine has an empty value for summary_polyline, whereas the potential problem activity has a null value for the map node.

I'm curious to know where the null value for map came from, and I'm primarily wanting to know how I can create an activity myself with a null value for map, so that I can troubleshoot our system in this scenario.

 

Thanks

Best answer by Scout

Hi michael12345

Thanks for posting. Please submit a support ticket and we’ll be happy to investigate further.

 

View original
Did this topic help you find an answer to your question?

2 replies

Scout
Forum|alt.badge.img+28
  • Strava Alumni
  • 1398 replies
  • Answer
  • November 8, 2022

Hi michael12345

Thanks for posting. Please submit a support ticket and we’ll be happy to investigate further.

 


Forum|alt.badge.img
  • Author
  • Hub Rookie
  • 1 reply
  • November 9, 2022

Hi Scout,

Thanks for responding. I already submitted a support ticket and was directed to the Strava API Google Group, then found some other developers discussing the same issue here:

Activity Summary Map Broken (google.com)


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