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

Exception Error #135

Closed
ScottMorra opened this issue Jul 12, 2021 · 4 comments
Closed

Exception Error #135

ScottMorra opened this issue Jul 12, 2021 · 4 comments

Comments

@ScottMorra
Copy link

Describe the bug
Getting the following error when trying to run the program:

2021-07-12 18:46:31,353 - INFO - peloton-to-garmin: Get latest 1 workouts.
2021-07-12 18:46:31,491 - INFO - peloton-to-garmin: Get workout: a1b421690d6e41b88e78a5563d6041a7
2021-07-12 18:46:31,672 - INFO - peloton-to-garmin: Get workout samples
2021-07-12 18:46:32,277 - INFO - peloton-to-garmin: Get workout summary
2021-07-12 18:46:32,320 - ERROR - peloton-to-garmin.Util: Exception: Expecting value: line 2 column 5 (char 5)
2021-07-12 18:46:32,321 - ERROR - peloton-to-garmin.Tcx_Builder: Failed to Parse Speed/Cal/HR - Exception: 'NoneType' object is not subscriptable
2021-07-12 18:46:32,321 - ERROR - peloton-to-garmin: Failed to write TCX file for workout a1b421690d6e41b88e78a5563d6041a7 - Exception: cannot unpack non-iterable NoneType object

To Reproduce
Steps to reproduce the behavior:

  1. Click on 'peloton-to-garmin-windows.exe'
  2. Enter number of desired activities to retrieve

Expected behavior
.tcx file would be created properly and placed in output folder

Logs

How many past activities do you want to grab?  1
2021-07-12 18:46:31,353 - INFO - peloton-to-garmin: Get latest 1 workouts.
2021-07-12 18:46:31,491 - INFO - peloton-to-garmin: Get workout: a1b421690d6e41b88e78a5563d6041a7
2021-07-12 18:46:31,672 - INFO - peloton-to-garmin: Get workout samples
2021-07-12 18:46:32,277 - INFO - peloton-to-garmin: Get workout summary
2021-07-12 18:46:32,320 - ERROR - peloton-to-garmin.Util: Exception: Expecting value: line 2 column 5 (char 5)
2021-07-12 18:46:32,321 - ERROR - peloton-to-garmin.Tcx_Builder: Failed to Parse Speed/Cal/HR - Exception: 'NoneType' object is not subscriptable
2021-07-12 18:46:32,321 - ERROR - peloton-to-garmin: Failed to write TCX file for workout a1b421690d6e41b88e78a5563d6041a7 - Exception: cannot unpack non-iterable NoneType object
2021-07-12 18:46:32,321 - INFO - peloton-to-garmin: Done!
2021-07-12 18:46:32,321 - INFO - peloton-to-garmin: Your Garmin TCX files can be found in the Output directory: Output
Press the <ENTER> key to continue...

Installation (please complete the following information):

  • OS: [windows]
  • Method: [exe]
  • Version: [1.0.0.0]

Additional context
This is the first time I've encountered this issue

@npetersen2
Copy link

I also just started having this same issue.

@philosowaffle
Copy link
Owner

Peloton changed their API and one of the endpoints we were previously using no longer exists. Would recommend upgrading to V2 where this issue is already resolved (#136 #138).

@ScottMorra
Copy link
Author

Upgrading to v2 worked, however my Garmin device is now registering that the workouts were recorded on a Forerunner 945, when my actual hardware is a Vivoactive 4. Is there somewhere to define the hardware that is being used?

@philosowaffle
Copy link
Owner

#134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants