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

Uncaught SyntaxError #1

Closed
lowkey-chris opened this issue Apr 25, 2023 · 5 comments
Closed

Uncaught SyntaxError #1

lowkey-chris opened this issue Apr 25, 2023 · 5 comments

Comments

@lowkey-chris
Copy link

Hey, everytime I try to run the code, I get following error:

"Uncaught SyntaxError: Identifier 'downloadUrl' has already been declared"

Bildschirmfoto 2023-04-25 um 14 54 56

@jpoep
Copy link
Owner

jpoep commented Apr 26, 2023

Yeah it's currently a little clunky to re-run the script because everything is defined as a const. It should work if you completely refresh the site using F5 and then paste the code again.

After you've pasted the code once, it's enough to type downloadActivities() in the console to rerun the download. I'll try to release a version later this evening that still works if you paste the entire code multiple times :)

Let me know if that helped!

@lowkey-chris
Copy link
Author

It was working now, but stopped after downloading 10 files. When I try to rerun the code, it just downloads the 10 files again.

@jpoep
Copy link
Owner

jpoep commented Apr 26, 2023

Is it possible that you only have 10 activities logged within your defined time period? Note that the script defaults to 2022-2020, so you'd have to change it to 2023 to include the current year. Near the top of the script, you can change yearsTo to 2023 as described in the README :)

@jpoep
Copy link
Owner

jpoep commented Apr 26, 2023

I actually just retested it in Chrome and it behaves similarly to what you described - it shows the names of all activities it found but stops downloading after 20 or so. Is it possible for you to retry it in Firefox? Firefox works perfectly for me.

@lowkey-chris
Copy link
Author

It works perfectly in Firefox. Thanks :)

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