tannth / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Execution of request failed: https://gdata.youtube.com/action/GetUploadToken #603

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.while uploading videos to youtube
2.FormUploadToken token = service.FormUpload(entry);
3.youtube service and youtube entry

What is the expected output? What do you see instead?
i want to upload file to my you tube account withoutAuthsub authentication 
browser based upload

Please use labels and text to provide additional information.

  YouTubeService service = new YouTubeService(authFactory.ApplicationName,
                "AI39si4B0wa_8IcZ6PJXsRTf2ZZk1fcxlwvk8Vn9LNCXBoXTm8x7KbL1TMsPsyFm0cyoMw-VMkxwqErlFJ4A2gYblHPzYvAILg"
                );

            authFactory.Token = HttpContext.Current.Session["token"] as string;
            service.RequestFactory = authFactory;

            try
            {
                YouTubeEntry entry = new YouTubeEntry();

                entry.Media = new Google.GData.YouTube.MediaGroup();
                entry.Media.Description = new MediaDescription("my video desc");
                entry.Media.Title = new MediaTitle("my video");
                entry.Media.Keywords = new MediaKeywords("API");

                // entry.Media.Categories
                MediaCategory category = new MediaCategory("API Related");
                category.Attributes["scheme"] = YouTubeService.DefaultCategory;

                entry.Media.Categories.Add(category);
                FormUploadToken token = service.FormUpload(entry);///Here i got this error

Original issue reported on code.google.com by baskosof...@gmail.com on 26 Jun 2012 at 1:24

GoogleCodeExporter commented 8 years ago
The error should include more details about the reason why the request is 
invalid, please share that as well.
If you can't find the more descriptive error message, please install Fiddler 
and capture the whole HTTP request and response.

Original comment by ccherub...@google.com on 26 Jun 2012 at 4:00

GoogleCodeExporter commented 8 years ago
Marking as obsolete because of the lack of details to reproduce the issue

Original comment by ccherub...@google.com on 3 Sep 2012 at 11:43