gazpachoking / trainaspower

Convert TrainAsOne training plans from pace to power, and upload them to FinalSurge for use in Stryd workouts.
21 stars 5 forks source link

Error finding workout steps #26

Open darkphalanx opened 2 years ago

darkphalanx commented 2 years ago

Hi I get an issue when fetching the next workout: Im in a taper fase in TAO maybe that has to do with it...

`2022-04-20 18:16:27.773 | INFO | trainaspower.trainasone:get_next_workouts:41 - Fetching next TrainAsOne workout. 2022-04-20 18:16:28.774 | DEBUG | main:main:100 - Error Traceback (most recent call last):

File "trainaspower\trainasone.py", line 98, in get_workout

AttributeError: 'NoneType' object has no attribute 'group'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "trainaspower\trainasone.py", line 51, in get_next_workouts

File "trainaspower\trainasone.py", line 108, in get_workout

trainaspower.trainasone.FindWorkoutException: Error finding workout steps: ("'NoneType' object has no attribute 'group'",)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "trainaspower\main.py", line 108, in

File "trainaspower\main.py", line 88, in main

File "trainaspower\trainasone.py", line 56, in get_next_workouts

trainaspower.trainasone.FindWorkoutException: Error finding next TaO workout: Error finding workout steps: ("'NoneType' object has no attribute 'group'",) 2022-04-20 18:16:28.776 | ERROR | main:main:101 - Could not load next Train as One workout. Created taocalendar.html for debugging. `

jahofmann commented 2 years ago

Can you upload your trainaspower.log?

darkphalanx commented 2 years ago

trainaspower.log

Here you go :)

jahofmann commented 2 years ago

Ah, so no additional information. Can you download the Garmin Workout JSON from TAO and upload that?

darkphalanx commented 2 years ago

workout-199X_8-economy.garminTraining.txt Yes!

jahofmann commented 2 years ago

Wonderful, thank you. That file looks alright, I'll see if I can find out what's going wrong.

jahofmann commented 2 years ago

Are you on the latest release?

darkphalanx commented 2 years ago

Just came back from my run and it just downloaded the run for tomorrow correctly. Maybe todays run was "special", I don't know but now it works fine.