4 Replies Latest reply on Sep 19, 2007 1:49 PM by jlewark

    Rare 2032 Errors with HTTPService

    jlewark
      I am using an HTTPService object to send either POST/GET requests to get back XML from a custom API. It works 100% of the time for me in every browser and OS I can get my hands on but with very small percentage of my users they are getting back the infamous #2032 error every time they try and use the application. The only commonality is that they seems to be they all are using IE7. The service is not on a secure server.

      Any one have any thoughts as to why some users might be experiencing this problem but not the majority of others?

      Code to create the HTTPService request,
      quote:

      service = new HTTPService;
      service.contentType = "application/x-www-form-urlencoded";
      service.method = HTTPmethod;
      service.url = api.getURL(method); // returns the full URL http://fulldomain/path/script.php
      service.resultFormat = "xml";
      service.addEventListener(ResultEvent.RESULT, handleResult);
      service.addEventListener(FaultEvent.FAULT, handleFault);
      service.requestTimeout = 0;
      service.send(api.getParams(method,params)); //api.getParams returns an object class containing the GET/POST parameters and values (associtive array)



      The error I'm getting is:
      quote:


      (mx.messaging.messages::ErrorMessage)#0
      body = (Object)#1
      clientId = "DirectHTTPChannel0"
      correlationId = "A7E3F5AF-E612-C59F-A893-B14D41CBFD18"
      destination = ""
      extendedData = (null)
      faultCode = "Server.Error.Request"
      faultDetail = "Error: [IOErrorEvent type="ioError" bubbles=false
      cancelable=false eventPhase=2 text="Error #2032"]. URL:
      _ http://s203.photobucket.com/svc/api.php_ ( http://s203.photobucket.com/svc/api.php) "
      faultString = "HTTP request error"
      headers = (Object)#2
      messageId = "D81A2220-8781-17D4-A2C8-B14D53A0395C"
      rootCause = (flash.events::IOErrorEvent)#3
      bubbles = false
      cancelable = false
      currentTarget = (flash.net::URLLoader)#4
      bytesLoaded = 0
      bytesTotal = 0
      data = (null)
      dataFormat = "text"
      eventPhase = 2
      target = (flash.net::URLLoader)#4
      text = "Error #2032"
      type = "ioError"
      timestamp = 0
      timeToLive = 0