Closed interpegasus closed 3 years ago
This seems like a question for Strava, we're just a client library here. But if you use Strava UI activities uploaded don't get processed immediately AFAIK. Does the activity eventually get processed and become visible? Do you need to poll for it?
Thank you, You are right. The issue is mostly related to Strava not accepting the file. I tried the API Strava Playground and got an error.
To solve it I will have to recreate the GPX in a different way. Strava uses trkpt instead of wpt
Formatting the GPX XML file as follows solved the issue on Strava Swagger UI and strava-ruby-client
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" creator="StravaGPX" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd" version="1.1">
<metadata>
<time>2021-04-10 00:03:59 +0000</time>
</metadata>
<trk>
<name>Virtual 5k at Night</name>
<type>9</type>
<trkseg>
<trkpt lat="34.14318705871792" lon="-118.26639350325974">
<time>2021-04-09T20:18:31+00:00</time>
<ele>1808.0</ele>
<name> App Waypoint 0</name>
</trkpt>
<trkpt lat="34.159117905321715" lon="-118.18918438667014">
<time>2021-04-09T21:07:31+00:00</time>
<ele>1806.0</ele>
<name> App Waypoint 147</name>
</trkpt>
<trkpt lat="34.15921681178095" lon="-118.18870498935557">
<time>2021-04-09T21:07:51+00:00</time>
<ele>1807.0</ele>
<name> App Waypoint 148</name>
</trkpt>
<trkpt lat="34.1593354993791" lon="-118.18812971257809">
<time>2021-04-09T21:08:11+00:00</time>
<ele>1803.0</ele>
<name> App Waypoint 149</name>
</trkpt>
</trkseg>
</trk>
</gpx>
I would like to know what might cause an activity upload status to remain on:
"Your activity is still being processed."
Code
Terminal file_name: /tmp/606f44b972b30251168f7b1f.gpx $ vim /tmp/606f44b972b30251168f7b1f.gpx $ cat /tmp/606f44b972b30251168f7b1f.gpx
Thank you