question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ERROR] Failed to reach url http://connect.garmin.com/proxy/download-service/files/activity/5321283197, error: HTTP Error 400: Bad Request

See original GitHub issue

I started using the gcexport.py script again last week (after the Garmin ransomware problem) following ~3 months not using it. Now it seems the gcexport.py keeps throwing an error 400 when downloading the tcx.

pierre@pierre-thinkpad:~$ python ~/Workspace/garmin-connect-export/gcexport.py -d ~/GarminConnect -c 10 -f original -u --username myemail@mail.com --password mypassword --originaltime --desc && rm ~/GarminConnect/*.json
Welcome to Garmin Connect Exporter!
[WARNING] Output directory /home/pierre/GarminConnect already exists. Will skip already-downloaded files and append to the CSV file.
Connecting to Garmin Connect... Done.
Requesting Login ticket... Done. Ticket=ST-02141344-WEqXaqbVlyOKmWWPqgm4-cas
Authenticating... Done.
Querying list of activities 1..10... Done.
Garmin Connect activity (1/10) [5321283197] San Francisco Running
	2020-08-01T17:56:37+17:00, 01:23:02, 16.428km
[ERROR] Failed to reach url http://connect.garmin.com/proxy/download-service/files/activity/5321283197, error: HTTP Error 400: Bad Request
Traceback (most recent call last):
  File "/home/pierre/Workspace/garmin-connect-export/gcexport.py", line 1007, in <module>
    main(sys.argv)
  File "/home/pierre/Workspace/garmin-connect-export/gcexport.py", line 988, in main
    actvty['startTimeLocal'])
  File "/home/pierre/Workspace/garmin-connect-export/gcexport.py", line 720, in export_data_file
    raise Exception('Failed. Got an HTTP error ' + str(ex.code) + ' for ' + download_url)
Exception: Failed. Got an HTTP error 400 for http://connect.garmin.com/proxy/download-service/files/activity/5321283197

Was wondering if someone has encountered this issue? Wondering if the API changed or if it’s related to the ransomware problem where Garmin might have changed something?

I’m on ubuntu 18.04.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
telemaxxcommented, Aug 5, 2020

it seems ok now, i just run the script.

0reactions
pierretamisiercommented, Aug 5, 2020

Agreed, it works today!

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP Error 400 Bad Request: What It Is and How to Fix It
The HTTP error 400 Bad Request is a client-side error that can happen when you visit a website. Learn more about the common...
Read more >
How to Fix the 400 Bad Request Error - Lifewire
The 400 Bad Request error means that the request you sent to the website server to view the page was somehow incorrect.
Read more >
HTTP error 400: how to fix it? - Debug Bar
In this guide, we'll explain each cause of the 400 bad request error and tell you how to fix the problem. Are you...
Read more >
How to Fix a 400 Bad Request Error [Causes and Fixes]
A 400 bad request error is an HTTP error that occurs when the request sent from your browser is not understood by the...
Read more >
What is a Bad Request Error 400 and How Do You Fix It?
The bad request error occurs when the server you're trying to reach sees your access request as a general client error. Hence, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found