FabiUnne/youtube-upload

Server responded with a 403 code

Closed this issue · 0 comments

Describe the steps that will reproduce the problem?

1. Run a script


Versions:

youtube-upload: 0.7
python: 2.7
python-gdata: 2.0.14

Please provide any additional information you deem to be useful:


Hi! I am trying to uplod a video, like this (USERname and PASS are correct, in 
fact):
./youtube_upload.py --email="USER@gmail.com" --password=PASS --title="Test" 
--category=Music 01.02.11.flv
and getting the following error:

Login to Youtube API: email='USER@gmail.com', password='****************'
Traceback (most recent call last):
  File "./youtube_upload.py", line 418, in <module>
    sys.exit(catch_exceptions(EXIT_CODES, main_upload, sys.argv[1:]))
  File "./youtube_upload.py", line 100, in catch_exceptions
    fun(*args, **kwargs)
  File "./youtube_upload.py", line 354, in main_upload
    captcha_response=options.captcha_response)
  File "./youtube_upload.py", line 174, in login
    self.service.ProgrammaticLogin(captcha_token, captcha_response)
  File "/usr/local/lib/python2.7/site-packages/gdata/service.py", line 797, in ProgrammaticLogin
    raise Error, 'Server responded with a 403 code'
gdata.service.Error: Server responded with a 403 code

What am I doing wrong?

Thank you.

Original issue reported on code.google.com by ysmet...@gmail.com on 14 Sep 2011 at 9:58