Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
afrigeri opened this issue Dec 30, 2019 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@afrigeri
Copy link

afrigeri commented Dec 30, 2019

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?

@sladkovm
Copy link
Owner

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 sladkovm added the bug Something isn't working label Jan 22, 2020
@sladkovm sladkovm self-assigned this Jan 22, 2020
@ffrie
Copy link

ffrie commented Apr 25, 2020

Any update? Same behavior for VirtualRide.

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

@gmajor67
Copy link

gmajor67 commented Jan 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants