Log in

No account? Create an account



Previous Entry fotoup.pl Jan. 25th, 2005 @ 12:48 pm Next Entry

I'm absolutely thrilled that fotoup.pl uploaded all my images on the first try today! Somewhat, confused, as well. I uploaded 330 images, there are 330 images in the gallery, great. However, fotoup.pl gave me lots of '500 EOF instead of reponse status line'. I've hacked it to create a log file of success and failure, and it reports 311 failures and 19 successes. The code that reports them (starting at line 223) is:

    open(LOG, ">>fotoup.log");
    if ($res->is_success) {
        print $res->content, "\n";
        print LOG "$length\t$file\t1\n";
    } else {
        my $error = ($res->content() || error_as_str($res));
        print $error, "\n";
        print LOG "$length\t$file\t0\n";
It looks like $res is a regular HTTP::Response object, so I'm not sure why it would return a false negative ...? ETA: That error no longer appears. How puzzling! I'm going to assume the devs did something, and say 'thank you'. :)
Leave a comment
[User Picture Icon]
Date:January 25th, 2005 11:01 pm (UTC)
My squid proxy cache often reports "Connection reset by peer" or "received zero byte response" when posting comments to LJ. Are you using a proxy?
[User Picture Icon]
Date:January 26th, 2005 01:30 am (UTC)
I'm not using a proxy, though I am behind a firewall.
[User Picture Icon]
Date:January 26th, 2005 08:09 pm (UTC)
Are you using the old fotoup.pl, which uses the old FB protocol?

The problem with the old FB protocol is it's questionably HTTP compliant. It violates some "SHOULD" directives in the HTTP spec.

For instance, on an upload if the server already sees you have that picture, it replies before you're done uploading, confusing the hell out of most HTTP clients.

We fixed that in the new FB protocol and new fotoup.pl, which you cna get off the picpix.com client download page.

Let me know if that changes anything for you.

[User Picture Icon]
Date:January 28th, 2005 08:22 pm (UTC)
When I diff the copy I have and the copy from picpix.com, the useragent string for the copy I have is FotoBilder_Uploader/0.1, and uses my $req = HTTP::Request->new(PUT => "http://$conf{'server'}/interface/upload");. Looks like the one you pointed to is 0.2, and uses my $req = HTTP::Request->new(GET => "http://$conf{'server'}/interface/simple");.

New version runs with no errors. Sweet!
[User Picture Icon]
Date:January 28th, 2005 08:45 pm (UTC)

Spoke too soon

With the new version, uploading to unsorted works fine. If I try to upload to a gallyer, it dies with:
HTTP error:
Uploading: f000.jpg
Getting challenge...
Adding to gallery: testing

And the image does not appear in the gallery. (In the older version, it will throw "500 Connection reset by peer", but appear in the gallery.)

If you need more specific info or tests, let me know. With the weekend coming up, my reply lag will be much smaller. :)
[User Picture Icon]
Date:February 18th, 2005 08:45 pm (UTC)

Re: Spoke too soon

I have the same problem with the new client. It dies with "HTTP error: 500 EOF" when I upload to a gallery, but uploading to Unsorted works.
(Leave a comment)
Top of Page Powered by LiveJournal.com