New container will not start due to connection issues with Strava #160

Closed
opened 2025-07-08 08:41:40 -04:00 by AtHeartEngineer · 0 comments

Originally created by @roland-d on 1/15/2025

Hi @joaovitoriasilva

Yesterday I did the update of Endurain to the new container where you have the frontend/backend in 1 container. I updated the Docker config file and all is fine from what I can tell. Only issue I have now is that Endurain fails to connect to Strava and because of that the container exists. After that Endurain tries again to connect to Strava, this fails and so it goes around and around. Would it be possible to, let's say, try 3 times and then just give up trying to connect to Strava and start the container normally?

The error it runs into is this one:

stravalib.exc.AccessUnauthorized: Unauthorized: Authorization Error: [{'resource': 'Athlete', 'field': 'access_token', 'code': 'invalid'}]

I have checked if the credentials are correct and I am able to make cURL calls to Strava with my credentials no problem.

To be sure all is fine, I have regenerated the code from Strava and put that in the compose file but the same error keeps coming back.

Any idea where to look next? This was working until I updated 😅

*Originally created by @roland-d on 1/15/2025* Hi @joaovitoriasilva Yesterday I did the update of Endurain to the new container where you have the frontend/backend in 1 container. I updated the Docker config file and all is fine from what I can tell. Only issue I have now is that Endurain fails to connect to Strava and because of that the container exists. After that Endurain tries again to connect to Strava, this fails and so it goes around and around. Would it be possible to, let's say, try 3 times and then just give up trying to connect to Strava and start the container normally? The error it runs into is this one: ``` stravalib.exc.AccessUnauthorized: Unauthorized: Authorization Error: [{'resource': 'Athlete', 'field': 'access_token', 'code': 'invalid'}] ``` I have checked if the credentials are correct and I am able to make cURL calls to Strava with my credentials no problem. To be sure all is fine, I have regenerated the code from Strava and put that in the compose file but the same error keeps coming back. Any idea where to look next? This was working until I updated :sweat_smile:
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/endurain#160