FabiUnne/youtube-upload

Incorrect username or password

Closed this issue · 9 comments

First a captcha issue. Then updated to newest version (svn). Now i get this. I 
doubt the username/password is wrong.

Traceback (most recent call last):
  File "/home/user/youtube-upload/bin/youtube-upload", line 308, in <module>
    sys.exit(main_upload(sys.argv[1:]))
  File "/home/user/youtube-upload/bin/youtube-upload", line 264, in main_upload
    captcha_response=options.captcha_response)
  File "/home/user/youtube-upload/bin/youtube-upload", line 97, in login
    self.service.ProgrammaticLogin(captcha_token, captcha_response)
  File "/usr/lib/pymodules/python2.6/gdata/service.py", line 770, in ProgrammaticLogin
    raise BadAuthentication, 'Incorrect username or password'
gdata.service.BadAuthentication: Incorrect username or password

Original issue reported on code.google.com by m...@insidetheweb.de on 1 Apr 2011 at 1:37

> Now i get this.

Well, I try to do my best... :-/

While I cannot assure that you are entering a wrong email/password, I can 
assure that it works for me:

$ python2 youtube_upload/youtube_upload.py --email=tokland@gmail.com 
--password=correctpassword --category Film --title="Video title" a.avi 
--- Login to Youtube API: email='tokland@gmail.com', password='************'
--- Start video upload: a.avi (title: Video title)
http://www.youtube.com/watch?v=er5iosDk91I

$ python2 youtube_upload/youtube_upload.py --email=tokland@gmail.com 
--password=wrongpassword --category Film --title="Video title" a.avi 
--- Login to Youtube API: email='tokland@gmail.com', password='*************'
Traceback (most recent call last):
  File "youtube_upload/youtube_upload.py", line 308, in <module>
    sys.exit(main_upload(sys.argv[1:]))
  File "youtube_upload/youtube_upload.py", line 264, in main_upload
    captcha_response=options.captcha_response)
  File "youtube_upload/youtube_upload.py", line 97, in login
    self.service.ProgrammaticLogin(captcha_token, captcha_response)
  File "/usr/lib/python2.7/site-packages/gdata/service.py", line 793, in ProgrammaticLogin
    raise BadAuthentication, 'Incorrect username or password'
gdata.service.BadAuthentication: Incorrect username or password

Original comment by tokland on 1 Apr 2011 at 1:49

I found the mistake. I think i missed "-" on "-password". Sorry for the issue. 
Now i am back to the quota limit (lol).

Original comment by m...@insidetheweb.de on 1 Apr 2011 at 1:54

And great script; while i am on it!

Original comment by m...@insidetheweb.de on 1 Apr 2011 at 1:54

ok!

Original comment by tokland on 1 Apr 2011 at 1:57

  • Changed state: Invalid
Tokland; got one question. Is there no ID Output any more ?

Original comment by m...@insidetheweb.de on 1 Apr 2011 at 2:28

What's the ID output? The URL of the uploaded video is being echoed to stdout 
as usual, see the example above.

Original comment by tokland on 1 Apr 2011 at 2:35

I saw that, and added an print url as well. But i seems it crushes right after 
the upload. So no ID (youtube video id) output.

Original comment by m...@insidetheweb.de on 1 Apr 2011 at 2:40

let's keep the talk in issue37.

Original comment by tokland on 1 Apr 2011 at 2:44

Original comment by tokland on 13 May 2014 at 2:55