Raistlfiren / garmin-csv-plan

A quick n' dirty way of "automating" training plans into Garmin Connect.
https://raistlfiren.github.io/garmin-csv-plan/
37 stars 6 forks source link

Workouts fail to create #29

Closed mmazerolle closed 4 months ago

mmazerolle commented 4 months ago

v.05 in docker on MacOs 14.4.1 When importing or scheduling workouts, in the "Creating workouts" phase, each workout fails with " * Workout - [x] failed to create". Same issue in prod and dev. Unfortunately I do not have a php debugging environment set up to investigate more deeply. I suspect more info about the cause could be found in the response from this

maz@Mathieus-Air garmin-csv-plan-0.5 % docker-compose run garmin ./bin/console garmin:workout pfitz.csv import -m mathieu.mazerolle@gmail.com -p FTcGZdgZr6C26qy -r 'Pfitz: ' -n -x -vvv    

Starting workout import/export command
======================================

Validating and accessing - pfitz.csv
------------------------------------

 [OK] File valid                                                                                                        

Parsing Workouts
----------------

 * 14k, 6k @ LT
 * 18k long run
 * 8k recovery
 * 14k easy
 * 24k long run
 * 14k, 10 strides
 * 25k, 13k @ mp
 * 21k long run
 * 23k long run
 * 28k long run
 * 14k, 8k @ LT
 * 29k, 16k @ mp
 * 13k, 3x1600 intervals
 * 16k, 8k @ LT
 * 11k, 10 strides
 * 34k long run
 * 16k double
 * 17k, 9k @ LT
 * 10k recovery
 * 11k, 6 strides
 * 25k, 19k @ mp
 * 14k, 6x800 intervals
 * 19k, 11k @ LT
 * 14k, 5x600 intervals
 * 10k tune-up race
 * 30k, 22k @ mp
 * 18k, 5x1200 intervals
 * 11k, 8 strides
 * 8k, 6 strides
 * 6k recovery
 * 11k, 3k @ mp

[info] Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated
Deleting old workouts
---------------------

Creating workouts
-----------------

 * Workout - 14k, 6k @ LT failed to create
 * Workout - 18k long run failed to create
 * Workout - 8k recovery failed to create
 * Workout - 14k easy failed to create
 * Workout - 24k long run failed to create
 * Workout - 14k, 10 strides failed to create
 * Workout - 25k, 13k @ mp failed to create
 * Workout - 21k long run failed to create
 * Workout - 23k long run failed to create
 * Workout - 28k long run failed to create
 * Workout - 14k, 8k @ LT failed to create
 * Workout - 29k, 16k @ mp failed to create
 * Workout - 13k, 3x1600 intervals failed to create
 * Workout - 16k, 8k @ LT failed to create
 * Workout - 11k, 10 strides failed to create
 * Workout - 34k long run failed to create
 * Workout - 16k double failed to create
 * Workout - 17k, 9k @ LT failed to create
 * Workout - 10k recovery failed to create
 * Workout - 11k, 6 strides failed to create
 * Workout - 25k, 19k @ mp failed to create
 * Workout - 14k, 6x800 intervals failed to create
 * Workout - 19k, 11k @ LT failed to create
 * Workout - 14k, 5x600 intervals failed to create
 * Workout - 10k tune-up race failed to create
 * Workout - 30k, 22k @ mp failed to create
 * Workout - 18k, 5x1200 intervals failed to create
 * Workout - 11k, 8 strides failed to create
 * Workout - 8k, 6 strides failed to create
 * Workout - 6k recovery failed to create
 * Workout - 11k, 3k @ mp failed to create

 [OK] Workout import was successful.                                                                                    
Raistlfiren commented 4 months ago

This is related to #27. I am going to close this issue since it is a duplicate. We need to implement a way to handle Garmin's new 2FA system. I appreciate you taking the time to put together a detailed response.