Quantcast
Channel: Kaltura - Latest posts
Viewing all articles
Browse latest Browse all 7410

Missing Parameter from MediaUpdate Service request

$
0
0

Hey all,

I am debugging an issue that seems to have cropped up in our Kaltura environement. We have C# app that interacts with our Kaltura instance. The kaltura version is Mercury-13.9.0. API version on the client is 3.3.0. Client Tag is dotnet:17-12-28

Consider this chunk of code. Assume that KalturaWrapper.GetClient() returns a functioning client object.

            Client client;
            client = KalturaWrapper.Instance.GetClient();
            client.ClientTag = "HDRTV-EditVideo";
            MediaEntry editentry = new MediaEntry();
            editentry.Name = txtName.Text;
            editentry.Description = txtDescription.Text;
            editentry.Tags = txtTags.Text;
            editentry.Categories = ddlCategory.SelectedValue;
            Exception error = null;
            MediaEntry response = new MediaEntry();
            bool done = false;
            OnCompletedHandler<MediaEntry> handler = new OnCompletedHandler<MediaEntry>(
            (MediaEntry result, Exception e) =>
            {
                response = (MediaEntry)result;
                done = true;

            });
            
            MediaUpdateRequestBuilder request = MediaService.Update(videoid.Value,editentry);
            
            request.SetCompletion(handler);
            request.Execute(client);

            while (!done) { Thread.Sleep(1); }

            //Update the local cache object with the changes too. 
            KalturaWrapper.Instance.ForceBuildCache();


            lblStatus.Text = "File edited successfully. (ID=" + response.Id + ")";

What I am seeing is an Exception in the handler routine, saying that I am missing the entryId parameter in the request. I can’t see where I am missing this. I’ve verified via debugging that videoid.Value does contain the right video ID.

I searched issues on github but I can’t really find an issue on this. I know this has tested as working previously so I’m kind of at a loss here as to what the problem may be.


Viewing all articles
Browse latest Browse all 7410

Trending Articles