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

can't convert json to FIT ? #139

Closed
zed4 opened this issue Jul 13, 2021 · 4 comments
Closed

can't convert json to FIT ? #139

zed4 opened this issue Jul 13, 2021 · 4 comments
Labels

Comments

@zed4
Copy link

zed4 commented Jul 13, 2021

[08:44:03 ERR] Failed to convert workout data f8e013a7583c4177a0cb10a261922ce4_5_min_Post-Ride_Stretch_with_Sam_Yo ./working\downloaded\f8e013a7583c4177a0cb10a261922ce4_5_min_Post-Ride_Stretch_with_Sam_Yo.json
System.InvalidOperationException: Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Conversion.FitConverter.GetSessionMesg(Workout workout, WorkoutSamples workoutSamples, DateTime startTime, DateTime endTime, UInt16 numLaps) in D:\a\peloton-to-garmin\peloton-to-garmin\src\Conversion\FitConverter.cs:line 424
   at Conversion.FitConverter.Convert(Workout workout, WorkoutSamples workoutSamples) in D:\a\peloton-to-garmin\peloton-to-garmin\src\Conversion\FitConverter.cs:line 148
   at Conversion.Converter`1.Convert(String format) in D:\a\peloton-to-garmin\peloton-to-garmin\src\Conversion\IConverter.cs:line 90

Installation (please complete the following information):

  • OS: windows
  • Method: exe
  • Version: v2

Additional context
i was having this issue with v1, as well...

INFO:peloton-to-garmin:Processing f8e013a7583c4177a0cb10a261922ce4 : 5 min Post-Ride Stretch with Sam Yo (stretching) at Sun Jul 11 21:02:54 2021
ERROR:peloton-to-garmin.Tcx_Builder:Failed to Parse Speed/Cal/HR - Exception: 'NoneType' object is not subscriptable
ERROR:peloton-to-garmin:Failed to write TCX file for workout f8e013a7583c4177a0cb10a261922ce4 - Exception: cannot unpack non-iterable NoneType object

what is it looking for that it can no longer find? did peloton change the format of their json files?

@zed4 zed4 added the bug label Jul 13, 2021
@philosowaffle
Copy link
Owner

Looks like a duplicate of #136 and #138

@amy26point2
Copy link

My meditation workouts seem to be getting stuck in the failed folder as .json files.

2021-07-14 11:28:04.034 -05:00 [ERR] Failed to convert workout data 18d33d76e9a94f3bb1b3c1da18da420a_10_min_Peace_Meditation_with_Anna_Greenberg ./working/downloaded/18d33d76e9a94f3bb1b3c1da18da420a_10_min_Peace_Meditation_with_Anna_Greenberg.json
System.InvalidOperationException: Nullable object must have a value.
at System.Nullable1.get_Value() at Conversion.FitConverter.GetSessionMesg(Workout workout, WorkoutSamples workoutSamples, DateTime startTime, DateTime endTime, UInt16 numLaps) in /Users/amywenger/Downloads/peloton-to-garmin-master/src/Conversion/FitConverter.cs:line 421 at Conversion.FitConverter.Convert(Workout workout, WorkoutSamples workoutSamples) in /Users/amywenger/Downloads/peloton-to-garmin-master/src/Conversion/FitConverter.cs:line 150 at Conversion.Converter1.Convert(String format) in /Users/amywenger/Downloads/peloton-to-garmin-master/src/Conversion/IConverter.cs:line 94
2021-07-14 11:28:04.076 -05:00 [INF] Encoded FIT file /Users/amywenger/Downloads/peloton-to-garmin-master/src/PelotonToGarminConsole/working/

OS: Mac
Method: Source
Version: 2.0.4

@amy26point2
Copy link

Build 2.0.5 fixed my issue where meditation classes were failing to convert. Now if Garmin authentication would just cooperate so that they would automatically upload :)

@philosowaffle
Copy link
Owner

@amy26point2 have you tried setting Garmin.UploadStrategy to 2?

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

No branches or pull requests

3 participants