Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-5395

Android CLI 6.3.0 causes variables in HTTPClient to be undefined

    Details

      Description

      When building on android with CLI 6.3.0 some variables that are defined and used inside a HTTPClient are undefined on the HTTPClient onload.

      In the example below you will see that the `methodVar` inside the onload is undefined - I am guessing its to do with the memory fixes they pushed in 6.3.0 but I am not sure...

      Relavent code:

      // set method as data.method else CHECK
      var methodVar = data.method || "checkURL";
       
       Ti.API.info("methodVar: " + methodVar);
          
      // createHTTPClient       
      var client = Ti.Network.createHTTPClient({
              onload : function(e) {												// if success do           
                  Ti.API.info("methodVar: " + methodVar);
         },
              onerror : function(e) {
      });
                  
          // open the connection with client.open with url
          client.open('HEAD', url);
          
          // Send the request.
          client.send();      
          
      };	   
      

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              dieskim David van de Meer
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration