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 403 forbidden #21

Open
TobiasGirschick opened this issue Sep 7, 2016 · 3 comments
Open

Error 403 forbidden #21

TobiasGirschick opened this issue Sep 7, 2016 · 3 comments

Comments

@TobiasGirschick
Copy link

Hey,

first of all thanks for the nice tool! I've been using it for some months now. Unfortunately, since yesterday(?) I get the following error regardless of the parameters I use. The password and username are correct. I verified it via Garmin Connect web interface:

Welcome to Garmin Connect Exporter!
Warning: Output directory already exists. Will skip already-downloaded files and append to the CSV file.
Traceback (most recent call last):
File "gcexport.py", line 155, in
result = http_req(url_gc_search + urlencode(search_params))
File "gcexport.py", line 70, in http_req
response = opener.open(request, data=post) # This line may throw a urllib2.HTTPError.
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 403: Forbidden

Any changes on Garmin side? Can you reproduce the problem or do I have canged something here that I am not aware of atm?

@moderation
Copy link

@TobiasGirschick follow the comments thread on this issue for the fix - #18 (comment). My fork which has the necessary GET calls and works is linked to from the comments.

@TobiasGirschick
Copy link
Author

thx. Worked out of the box!

fjgal added a commit to fjgal/garmin-connect-export that referenced this issue Sep 12, 2016
  added two additional GET requests as suggested in kjkjava#18 (comment)
  this also solves kjkjava#21
@fjgal
Copy link

fjgal commented Sep 12, 2016

Thanks @moderation for implementing the solution. I created a pull request containing the authentication and activity download fixes (no refactoring) to see if this could be merged into @kjkjava upstream repo.

Meanwhile you can use clone my fork https:/fjgal/garmin-connect-export

pjq pushed a commit to pjq/garmin-connect-export that referenced this issue Sep 29, 2020
New parameter --subdir DIR for activity files
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

3 participants