Using SaaS KSU - unable to add entries

18 replies [Last post]
Joined: 09/03/2009
Points: 7

I followed the directions here: http://www.kaltura.org/kaltura-simple-uploader-ksu-website-integration-g...

I can embed the widget just fine, and my delegate callbacks are all being triggered. I'm trying to upload a single image or video file (very small size). After the "allUploadsCompleteHandler" is triggered I am then calling flashObj.addEntries(). The "entriesAddedHandler()" is triggered, but no matter what I try the resulting array of entries (for most of my tests this is 1 item long) contains items with a "null" entryId and an uploadStatus of "notUploaded"...

Any idea what could be going wrong here? Am I missing a step?

Also, I have tried calling flashObj.getError() at all the steps along the way too in order to get some more information, but that is always returning "null".

Using the server side client (C#), I am able to invoke the KaltureClientTester project from Visual Studio and successfully upload from a file and create entries that way using my partner Id and secret... just having a problem with the KSU flash widget now...

Thanks for any help.

Joined: 09/03/2009
Points: 7

Any thoughts on this, Kaltura team?

Joined: 06/09/2011
Points: 3

Ryan , I realize that this is quite old post , but I am stuck in exactly the same problem was wondering if you found any solution for this .

Thanks

Joined: 04/05/2009
Points: 354

Can you post any screenshots or code?

Joined: 09/03/2009
Points: 7

As far as the code, it's verbatim what's on your docs page that I cited in my original post, except of course for my secrets.

And I guess a screenshot would simply be my debugger showing that the items passed in to my entriesAddedHandler are all "notUploaded" with an entryId of -1.

I noticed that in the C# client, once the file is uploaded you are creating an Entry object, and then making a call to add the entry but you are passing an "uploadToken" with that call. I'm assuming that the Flash widget's .addEntries() method is abstractly handling that part, but could it somehow be broken?

Is the Flash widget (KSU) that is being served via the URL in your docs page (the one I cited in my original post) up to date?

Are you able to successfully upload and create entries by following the directions on that page?

Joined: 09/03/2009
Points: 7

Here's a thought... I'm on a trial account - would that have any effect on the KSU's behavior? I assumed it would not.. a) because the C# client calls work just fine, and b) because I assumed a trial account would allow me to fully kick the tires of the platform.

That's the only thing right now that I can think of that is different from my implementation and the implementation on your example page.

Joined: 09/03/2009
Points: 7

Once again... any thoughts on this Kaltura team? Have you tried using the KSU as outlined in your example page, to verify it still works? Or am I for some reason being blocked (only via the KSU and not via the C# client) because of the trial account status?

Joined: 03/29/2009
Points: 764

Hi,

We'll take a look and post an answer shortly.

Joined: 04/05/2009
Points: 354

I've just downloaded the KSU Integration script example, and gave it a quick test, and everything seemed to work fine. All I did was add my Partner ID and secret into the ksu.php file, loaded it up in my web browser, clicked the "Step 1" button, selected a little Quicktime Movie, clicked "Step 2" (which uploaded the file), then clicked "Step 3". I then opened up the KMC, and saw that the newly uploaded file was there...

So it seems the example script is all working fine. I also just have a standard free account - nothing special.

Joined: 01/05/2009
Points: 1697

Ryan can you describe your environment?
What php version and flash version you use?

Joined: 09/03/2009
Points: 7

I'm using the C# client, as mentioned previously, instead of php. I haven't had a chance yet to revisit my KSU wrapper. But the server side is only used to generate the ks. I am generating that just fine (a user session as per the php example on your site), and passing the same flashVars out to my javascript client, which as far as I can tell has the exact same values as your example (except for my partnerId stuff of course).

I'll spend some time this morning making sure once again that my javascript interface is being setup exactly like the one in the example page. As I said though, it seems like everything should be working, because once again, all of my javascript handlers in my delegate object are triggered as expected (the upload progress as well) - yet no errors are found via polling getError() and the final handler (entriesAddedHandler) is triggered, but the items have entryId = null and uploadStatus = "notUploaded"... why would my handlers be triggered if the file(s) were not uploaded?

I'll dig in a bit more today and report back any descrepencies in values passed into the KSU at setup. I'm probably missing something obvious.

Joined: 01/05/2009
Points: 1697

Ryan - can you upload the code you're using as the ksu wrapper?
Another thing to look at is what version of flash is installed on your machine (not that we had issues reported, but just to make sure).

Joined: 11/21/2009
Points: 1

Dear Kaltura Team.

We have the same issue with the simple Uploader.
I configured everthing properly what is described there: http://www.kaltura.org/kaltura-simple-uploader-ksu-website-integration-g...

All javascript callbacks and delegates are called. the progress is working the upload is working BUT the entry is not visible in the KMC after clicking step 3.

You can check our testweb here: http://mediatest.spotrockers.com/kaltura.php

The account is a normal test account.

Can you please help??

Client config:
FF 3.5.5
Javascript active
flash 10
Server config:
PHP 5.2.0-8
Linux debian

br
richard

Joined: 10/08/2009
Points: 2

I'm using for the moment the KMC interface.
I've some troubles to check the statut of the uploaded file.
I can only see the %pourcentage of the upload .
Is it possible to show bandwidh, remaining time, during the upload?
I must try several times to finish the upload and to be behind my pc to check the upload.
Often, I get a error the console but any details of the error. And I try again!
So for video transfer which needs a lot of time, it will be good to have more details in the interface.
Several hours for only 50Mo is hard!

Cborg

Joined: 02/22/2009
Points: 97

cborg - the issue you're experiencing have something to do with flash player versions.
We've updated the KCW in the KMC to a newer version which was supposed to solve that issue.
Are you still experiencing this issue?

Ryan / Richard- the KSU integration kit should be working just fine 'out-of-the-box'.

Richard - what files were you trying to upload ? note that documents and SWF files are not viewable within the current version of KMC, so if you uploaded one of those please try an image or video and report back.

Ryan - are you still having issues ? can you post your code or supply a link to a test page ?

Gonen

Joined: 05/14/2009
Points: 69

I am using C#. I had the exactly the same problem Ryan had. Everything worked fine and no error except entriesAddedHandler the entryId was always returning null.
It took me a day to figure out the flashVars "entryId" has to be "-1".
I put an existing entryId in the flashVars and the entryId was always returning null after flashObj.addEntries(); . After changing the flashVars entryId = "-1", everything works perfectly.

If flashVars "entryId" has to be "-1" was addressed in the document, it would have saved me a lot of time.
Thanks.

Joined: 04/01/2011
Points: 3

I tried the sample PHP code but didn't work for upload, I can see the progress an then upload completed but didn't see any entryid, it is null.
any help are appreciate.

Joined: 06/09/2011
Points: 3

I am also facing the same problem , it seems specific to SaaS when I switch my serviceUrl to Kaltura CE installation entryId get populated and video is uploaded. Whereas in SaaS edition entryId is null after addEntries() is called. Has any one found a solution to this ?

Joined: 01/13/2011
Points: 10

I use the SaaS product, I run about 300GB per week up the FTP transfer to Kaltura. but suddenly all uploads - HTTP and FTP are DEAD. "Invalid URL" error on every line of every CSV file I submit.

Anyone else seeing this error? I feel very alone becasue all "Partner Support" will tell me "we will let you know when it is fixed". My CEO is FREAKING OUT because we can't run a business on mystery and promises.

-David