Giter Club home page Giter Club logo

Comments (12)

Joao98Victor avatar Joao98Victor commented on August 17, 2024 1

Hi, I'm facing the same problem trying to use UploadEntireFileAsync method.

Error generating upload ticket.\nCode: BadRequest\nMessage: {"invalid_parameters":[{"field":"type","error_code":2552,"error":"The streaming approach is no longer functional. For alternatives, please visit https://developer.vimeo.com/api/upload/videos#understanding-upload-approaches.","developer_message":"The streaming approach is no longer functional. For alternatives, please visit https://developer.vimeo.com/api/upload/videos#understanding-upload-approaches."}],"error":"You have provided an invalid parameter. Please contact developer of this application.","link":null,"developer_message":"The parameters passed to this API endpoint didn't pass Vimeo's validation. Please check the invalid_parameters list for more information.","error_code":2204}

As the error suggests this method is trying to pass an invalid "type" parameter, I tried to figure out what was the error but I haven't had the opportunity to try to open a pull request to solve this question. However I think that the error happens because of the ContinueUploadFileAsync method that is called inside UploadEntireFileAsync method.

from vimeo-dot-net.

mfilippov avatar mfilippov commented on August 17, 2024 1

If you receive "The streaming approach is no longer functional" you are using old version of the library. Please update to the latest.

from vimeo-dot-net.

shashank-tak avatar shashank-tak commented on August 17, 2024

Same with me, I am using vimeodotnet version 2.0.0.23 and everything is working fine except UploadEntireFileAsync functions it throws error with developer message saying: "developer_message":"The streaming approach is no longer functional.

from vimeo-dot-net.

nesanmano avatar nesanmano commented on August 17, 2024

Hi, I am using version 3.2.3 of the ibrary. The upload procedure kicks in but it only creates a placeholder and the file is not being uploaded.

 if (string.IsNullOrWhiteSpace(fileToUpload)) return null;






            var ticket = _client.GetUploadTicketAsync(100).Result;
            IUploadRequest resp = null;


            using (var file = new BinaryContent(new FileInfo(fileToUpload).Create(), "video/mp4"))
            {
                var length = file.Data.Length;
                resp = _client.UploadEntireFileAsync(file, length ).Result;
            }

            return GetVideo(resp.ClipId.ToString());

from vimeo-dot-net.

ferozhussain avatar ferozhussain commented on August 17, 2024

Hi,
For me the video is getting uploaded but it's ending up as "untitled".
var binaryContent = new BinaryContent("......\\testVideo.mp4"); vimeoClient.UploadEntireFileAsync(binaryContent).Result

from vimeo-dot-net.

nesanmano avatar nesanmano commented on August 17, 2024

Hello Ferozhussain. My email id is [email protected]. Please contact me on Skype because I need your help to upload the videos. I am just able to create a colored placeholder . Thanks

from vimeo-dot-net.

ferozhussain avatar ferozhussain commented on August 17, 2024

hi @nesanmano ,
I just looked at your code looks like you are trying to create a token. which is not required at that stage.
you can simply call this below code and make it work.

var binaryContent = new BinaryContent("file path goes here"); var video = vimeoClient.UploadEntireFileAsync(binaryContent).Result;

from vimeo-dot-net.

nesanmano avatar nesanmano commented on August 17, 2024

Hi @ferozhussain ; Thank you so much it is working. Even thought I did not use the token, I did not understand why it never uploaded successfully. Maybe my call to create which trigger an a file stream was the culprit.

from vimeo-dot-net.

nesanmano avatar nesanmano commented on August 17, 2024

Hi @ferozhussain , could you please help me with this, I am trying to create an album before the upload but I keep getting invalid parameters.

            EditAlbumParameters editAlbumParameters =
                new EditAlbumParameters()
                {
                    Name = name,
                    Description = description,
                    Sort = EditAlbumSortOption.AddedLast
                };  
            
            if (!string.IsNullOrWhiteSpace(password))
            {
                editAlbumParameters.Privacy = EditAlbumPrivacyOption.Password;
                editAlbumParameters.Password = password;
            }

            var res = _client.CreateAlbumAsync(UserId.Me, editAlbumParameters).Result;

Thank you

from vimeo-dot-net.

Vicnovais avatar Vicnovais commented on August 17, 2024

Hello, I have the same problem: "The streaming approach is no longer functional. For alternatives, please visit https://developer.vimeo.com/api/upload/videos#understanding-upload-approaches."

from vimeo-dot-net.

ferozhussain avatar ferozhussain commented on August 17, 2024

@Joao98Victor @Vicnovais which version are you using

from vimeo-dot-net.

Joao98Victor avatar Joao98Victor commented on August 17, 2024

After updating to the newer version (3.2.4) it works! Thanks!

from vimeo-dot-net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.