Are you logging in with a Google Account that's not linked to a
YouTube account? That would result in a 401 response, and the
workaround for the time being is to link a new or existing YouTube
account to your Google Account. You could do this from
http://www.youtube.com/create_account
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Sep 23, 2:35 am, pwcm <paulowmac...@gmail.com> wrote:
> Let me appologize in advance if this issue does not belong here. I want to
> use the YouTube Data API in my website and have ownloaded the YouTubeSample
> app for .Net. I build it in VS2008 and when I run it, I get to the test
> page and click on the Google Login. The next page then asks me whether or
> not I trust my localhost, to which I respond 'Allow'. Next, it asks me for
> my Google username/password which I provide and get authenticated. However,
> the next page gives me the following 401 authorization error:
> Actual Results:
>
> Server Error in '/YouTubeSample' Application.
> ________________________________________
> The remote server returned an error: (401) Unauthorized.
>
> [WebException: The remote server returned an error: (401) Unauthorized.]
> System.Net.HttpWebRequest.GetResponse() +5373789
> Google.GData.Client.GDataRequest.Execute() +129
>
> Expected output:
> I think I am suppose to see a list of videos (at least is what it looks like
> from the debugger).
>
> This is probably some configuration error but I couldn't find any
> documentation on how to handle this issue and I've spent two days already
> since I downloaded/installed the Google Data API and YouTubeSample, without
> any success so far.
>
> It seems like I am being authenticated correctly but the access token that I
> am getting back does not authorize me to access YouTube.
> I really appreciate any help or additional information on how I can solve
> this issue.
> Thanks in advance,
> pwcm
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment