[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Internal Server Error 500



   So I delete the file and again it is 950 MB.  But want I don't
   understand why? It is such a simple program, with only one request..
   And the request and the response is small. So why the big debug file?
   I was able to copy all 950 MB of it on to my local PC. and the only
   thing that make sense to me is:
   recvresp(): entered
   SetError() #43: CommTCP_read: time-out!
   recvresp(): end with timeout
   http_close(): entered
   HTTP/1.1 500 Internal Server Error
   It sound like it is timing out.  But again if it is such a simple
   program with a small request, why would it time out?
   From:        Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
   To:        HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
   Date:        2012/08/31 05:43 PM
   Subject:        RE: Internal Server Error 500
   Sent by:        ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     __________________________________________________________________

   > The file is 950 MB.
   Hmmm. That is a big debug file. This sounds like you are either sending
   a huge request or getting a ton of data back.
   The debug file by default is recreated each time the program is opened.
   Are you making multiple requests within the program? That would explain
   all the data.
   If you need to modularize the debug, you can call the close debug
   routine yourself. In particular, if you are running the requests in a
   loop and only need to capture the ones that fail, it would look
   something like this.
   DOU 1=0;
    tmpFile = http_tempfile() + '.txt';
    http_debug(*ON: tmpFile);
      (get data for next request - LEAVE if no more requests)
    rc = http get/post
    http_debug(*off: tmpFile);
    If rc = 1; // normal completion, delete debug
      unlink(tmpFile);
      (other processing to parse or update the data)
    else;  // alert someone
      dsply ('Look at ' + tmpFile);
    endif;
   enddo;
     __________________________________________________________________

   This e-mail is subject to the Columbus Stainless [Pty] Ltd Email Legal
   Notices available at:
   [1]http://www.columbus.co.za/EmailLegalNotice.htm.
     __________________________________________________________________

   This e-mail message has been scanned for Viruses and Content and
   cleared by MailMarshal
     __________________________________________________________________

References

   1. http://www.columbus.co.za/EmailLegalNotice.htm
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------