Unsupported type class in HTTPClientProxy

I'm trying the sample code from Titanium and getting the following error:

[INFO] [4,20782] in utf-8 error for GET
[TRACE] W/TiConvert( 886): (kroll$1: app://app.js) [13,20795] Unsupported type class ti.modules.titanium.network.HTTPClientProxy
[WARN] [3,20798] Message: {"error":"api.appcelerator.net"}

What does Unsupported type class mean?

var xhr = Titanium.Network.createHTTPClient();
xhr.onload = function()
    Ti.API.info('in utf-8 onload for GET');
    l2.value = this.responseText;
xhr.onerror = function(e)
    Ti.API.info('in utf-8 error for GET');
    Ti.API.warn('Message: '+JSON.stringify(e));

1 Answer

  • Solution:
    Seems something was corrupted in the virtual device. All I had to do was open up the Android SDK and AVD Manager then delete all the virtual devices. (They will be recreated when you run the emulator again)

    — answered 4 years ago by John Brennan
    1 Comment
    • I am having this problem when I run the app on the emulator as well as the Android device in USB Debugging mode. Any idea? I will try your fix on the emulator and see if it works. This also has not been very consistent error. It happens sometimes, it doesnt sometimes - on the emulator.


      — commented 4 years ago by Sridevi Kolluri