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

ERROR! Retrieving Strava cookies failed! #1

Open
treblaegiem opened this issue Nov 23, 2024 · 7 comments
Open

ERROR! Retrieving Strava cookies failed! #1

treblaegiem opened this issue Nov 23, 2024 · 7 comments

Comments

@treblaegiem
Copy link

Hello!
thanks for the script... Unfortunately I keep getting "ERROR! Retrieving Strava cookies failed!" though I am sure of the credentials... do you have any idea where this could come from?
thanks a lot
T

@zimmertr
Copy link
Owner

zimmertr commented Nov 23, 2024

Hm, I can try and take a look soon but I'm currently dealing with a disaster and don't have my computer. Is it possible you tried to auth and failed too many times and were temporarily restricted from logging in? It happened to me during development and I think my account was locked for a few hours, or even up to a day. There's also a chance it's related to this recent API change. This project uses the stravacookies library for auth, so it's possible that that dependency might have stopped working as well.

@treblaegiem
Copy link
Author

arg! sorry for the disaster! Good luck for that! I don't think it is related to to too many failed login... for the rest I don't know. I read on some forums that Strava had changed the authentification system a few months ago in 2024... I am really no expert... I am planing to cross the French Pyrenees via the high route, and importing the heatmaps into GaiaGPS would be super useful! All the best!

@zimmertr
Copy link
Owner

zimmertr commented Nov 23, 2024

As I recall, you can't actually use this with Gaia. Their custom layer textbox has a character limit that is less than the number of characters in this URL. I filed a support ticket with them asking it to be increased and they just closed it without a response. 🤡

You could theoretically host the data with a proxy on a shortened domain, however. But then anyone with access to the proxy could probably discover your cookies somehow. So it's not a secure solution.

Also, I actually don't use this anymore. I found the credential expiration to be annoying and discovered a cached proxy that doesn't have the same limitation. Here is my run activity URL for example:

https://proxy.nakarte.me/https/heatmap-external-b.strava.com/tiles-auth/run/hot/{Z}/{X}/{Y}.png?px=256

@treblaegiem
Copy link
Author

I could not even go as far as trying to import it into strava... that said, I have tried to use to include layers with super long urls and never got a problem...
as for the cached proxy and the link example you shared, I am affraid that I don't understand what this means :-( (and link does not seem to work)...

@zimmertr
Copy link
Owner

The URL won't open in your browser as it just returns raw data to mapping software based on dynamic inputs. Using Caltopo, try and add a custom map source for that URL like so:

Screenshot 2024-11-23 at 12 22 29 PM

@zimmertr
Copy link
Owner

zimmertr commented Nov 23, 2024

Also, I can confirm that this is no longer working. stravacookies probably broke with the recent API changes.

Screenshot 2024-11-23 at 12 25 29 PM

@treblaegiem
Copy link
Author

actually I found a chrome extension that does pretty much the same thing: JOSM Strava Heatmap.
Then it is true that GaiaGPS has a text field that is too short (250 char), but there is an easy fix: with the developer tools of chrome, you can change it to another length, and voilà.
It works perfectly :-)
best
T

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

No branches or pull requests

2 participants