stravaio icon indicating copy to clipboard operation
stravaio copied to clipboard

Error when activity_type is different from 'Ride' and 'Run' (e.g. Hike)

Open afrigeri opened this issue 5 years ago • 3 comments

Got error when retrieving hiking activity:

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/swagger_client/models/summary_segment.py", line 196, in activity_type .format(activity_type, allowed_values) ValueError: Invalid value for activity_type (Hike), must be one of ['Ride', 'Run']

is it possible to add other types of activities?

afrigeri avatar Dec 30 '19 15:12 afrigeri

Hi Alessandro,

thanks for reporting, I will look into it in the next couple of weeks (currently a bit crunched at the job that pays my bills)

From the location of the error, I would guess we need to recompile a new swagger_client that implements low-level strava API calls.

Srava Swagger Client

sladkovm avatar Jan 22 '20 08:01 sladkovm

Any update? Same behavior for VirtualRide.

ValueError: Invalid value for activity_type (VirtualRide), must be one of ['Ride', 'Run']

ffrie avatar Apr 25 '20 18:04 ffrie

I had this error as well and updated the relevant swagger_client code to allowed_values = ["Ride", "Run", "VirtualRide"]

gmajor67 avatar Jan 01 '22 13:01 gmajor67