Creating shared item fails, though item exists

Last post 05-21-2008 5:40 PM by CrazyMerlin. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 05-15-2008 7:34 AM

    Creating shared item fails, though item exists

    Hey guys!

     In an app I've written I load an flv file in a mini-player and allow the user to seek through the file, hit a capture button and extract that frame as a thumbnail to use for that video on their site.

    This was all working well but I was having caching issues with Firefox, so I decided to add a number to all my image.

    Now I get an error when trying to create the item for share, even though I can see the item exists on the CDN.

    [Thu May 15 07:22:26 2008]
    result=FailedOn2 for husband_thumb71.jpg: Invalid path
    <?xml version="1.0" encoding="utf-8"?>
    <Response>
        <ResponseCode>70005</ResponseCode>
        <ErrorMessage>Invalid path</ErrorMessage>
    </Response>

    Is there a log you guys keep so you can see if I was pointing to the correct file, because honestly I cannot see the issue here.

    Our account name is tribecdn.

    Thanks for any info.
     

    Life is a PHP script in need of debugging!
  • 05-15-2008 2:50 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 612

    Re: Creating shared item fails, though item exists

    I am looking through the logs now, this may take a few.  What node are you doing this work on?

    Regards,
          Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 05-15-2008 3:43 PM In reply to

    Re: Creating shared item fails, though item exists

    node1 Barry.

    http://node1.nirvanix.com/1IybOQ59~Ubvq-vLCkJ~BXi-2uME~Q3Cuvg5pg7~4zD-6YI/MediaManager/tribecdn/husband_thumb71.jpg

    As you can see, the file is there so not sure why I get that error.

    Thanks 

    Life is a PHP script in need of debugging!
  • 05-15-2008 9:53 PM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 612

    Re: Creating shared item fails, though item exists

    In the error logs we see the call to CreateHostedItem and then 126 milliseconds later the file is finished uploading.  It seems you are calling the CreateHostedItem before the file exists.

    Let me know if this helps.

    Regards,
        Barry R.
     

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 05-19-2008 8:38 AM In reply to

    Re: Creating shared item fails, though item exists

    Hi Barry,

    Thanks for the reply.

    What I'm actually doing in this case is extracting a single frame from an flv to use as a thumbnail. So the flv is actually uploaded in advance, then a "Media Object" is created and the flv linked to it, and that's where I get the issue. When I click on the flv I create a mini player allowing the user to scroll through, find a frame they like and click a button to capture that frame.

    So my code looks like this: http://crazymerlin.com/testbed/thumb_function.txt

    And the writeToLog method output to an instance of this is as follows:

     [Mon May 19 08:32:28 2008]
    result=FailedOn2 for /thumbs/husband_thumb131.jpg: Invalid path
    <?xml version="1.0" encoding="utf-8"?>
    <Response>
        <ResponseCode>70005</ResponseCode>
        <ErrorMessage>Invalid path</ErrorMessage>
    </Response>

    If you want to test it yourself you may do so here: http://crazymerlin.com/vg_utils/mm/m_man.php?cmd=create_object

    As I'm writing this I'm wondering if it is actually necessary to share the item at all.

    Anyway, thanks for any help.

     

    Life is a PHP script in need of debugging!
  • 05-21-2008 5:40 PM In reply to

    Re: Creating shared item fails, though item exists

    Ok, fixed this now.

    Just created a callback function to see if the image was available.

     

    Thanks,

    Paul 

    Life is a PHP script in need of debugging!
Page 1 of 1 (6 items)