Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Some additional information:
AuthSubHelper.doGet() calls YouTubeApiHelper.getCurrentUsername(). When you're
logging in with an unlinked Google account, getCurrentUsername() throws an
uncaught AuthenticationException with the message "OK". A fairly simple fix is
to add another catch clause to the try-catch block in
YouTubeApiHandler.getCurrentUsername(); just log the message and continue
processing. The rest of AuthSubHelper.doGet() will function properly,
detecting the null youTubeName and throwing a more informative exception.
Unfortunately, the front end doesn't seem designed to handle that informative
exception very well; you end up with a page that displays:
{"error":"400: Unable to retrieve a YouTube username for the authenticated
user."}
I haven't looked into what would be necessary to properly handle that case on
the front end.
Original comment by mbmerr...@gmail.com
on 15 Dec 2011 at 2:27
The strange thing is that when logging in via AuthSub to an unlinked YouTube
account, you're *supposed* to be forced to link the YouTube account to a Google
Account before you can proceed. I was pretty sure that's the case, but it
sounds like it's not.
I'll look into that first, since uploading any videos into an unlinked account
is a non-starter anyway.
Original comment by je...@google.com
on 28 Dec 2011 at 8:48
Hi
I am facing same issue with my youtube direct API.
Refer the attached image with this post.
Thanks
Sunil G.
Original comment by ytdirect...@gmail.com
on 20 Feb 2012 at 11:59
Attachments:
Original comment by api.je...@gmail.com
on 22 Feb 2012 at 3:20
The same Error here... any update ??
any solution ??
Original comment by dev.denu...@gmail.com
on 5 Apr 2012 at 10:46
Original issue reported on code.google.com by
mbmerr...@gmail.com
on 13 Dec 2011 at 9:36