Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: transfer closed with outstanding read data remaining

  1. #1
    Guest

    Default transfer closed with outstanding read data remaining

    Two days ago I've started receiving the above error message when trying to get data via curl from my web tool.
    The date I'm trying to access is ~850kb XML but it stops the transfer at ~800kb, varying between attempts. I've never had this problem before and the code was running fine for months.

    The code runs perfectly fine on my localhost! Has something changed recently in altervista? Why is this happening?

    Here's my curl code:
    Code:
        $ch = curl_init();
        
        if(!empty($post)) {
            curl_setopt($ch, CURLOPT_POST      ,1);
            curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
        }
    
        curl_setopt($ch, CURLOPT_URL, $url);
    
        if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off'))
            curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
            
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
        curl_setopt($ch, CURLOPT_TIMEOUT, 60);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        
            
        if (strpos ($url, "AssetList.xml") !== false) {
               $fp = fopen('../transfer.log', 'w');
               curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
               curl_setopt($ch, CURLOPT_STDERR, $fp);
            }
        $data = curl_exec($ch);
        curl_close($ch);
    Last edited by evetools; 04-13-2015 at 08:40 AM.

  2. #2
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    573

    Default

    Could you please specify the URL of the request?

  3. #3
    Guest

    Default

    This is the general URL: https://api.eveonline.com/corp/AssetList.xml.aspx

    However, it requires some code to get to the full list I'm trying to reach. I'm not comfortable publishing this code on a public forum. Shall I PM you?

  4. #4
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    573

    Default

    Quote Originally Posted by evetools View Post
    Shall I PM you?
    Yes, it's necessary in order to verify the problem.
    http://forum.en.altervista.org/priva...ewpm&u=4238108

  5. #5
    Guest

    Default

    Mail sent. Thanks!

  6. #6
    Guest

    Default

    The problem seem to have been fixed.
    Was it something on your end?

  7. #7
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    573

    Default

    Quote Originally Posted by evetools View Post
    The problem seem to have been fixed.
    Was it something on your end?
    No, we didn't change anything. The cause might have been not on our end, we didn't had the time to verify properly.
    However, if the problem comes up again, let us know.

  8. #8
    Guest

    Default

    Hi there,

    The problem has come up again. I tried running the code on my local server and it runs fine, so I suspect it *is* on your end.

  9. #9
    saitfainder's Avatar
    saitfainder is offline AlterVista Staff
    Join Date
    Feb 2010
    Posts
    300

    Default

    The problem has been confirmed and we are investigating about it. I think we can say something more in a few days.
    "Over thinking, over analyzing separates the body from the mind."

  10. #10
    Guest

    Default

    Good news!
    It is important to clarify that the problem is intermittent, so sometimes it works while others it doesn't

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO