Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24846] Windows: in the Ti.Network.createHTTPClient, the send() request method is making crash

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-12-27T01:01:11.000+0000
Affected Version/sRelease 6.1.0, Release 6.1.1
Fix Version/sRelease 7.5.0
ComponentsWindows
Labelsn/a
ReporterMostafizur Rahman
AssigneeKota Iguchi
Created2017-06-19T11:14:06.000+0000
Updated2018-12-27T01:01:11.000+0000

Description

Hello, If accesstoken (set as RequestHeader) like this expression. client.setRequestHeader("Authorization", "OAuth " + "00DN0000000Ap4u!AQ4AQIawfQBbd5YmcWpk5GEa7NjiLaQyP0m6phLLPM79L6KhSxxHYsIVNiOWo.RwNN0PIg"); then client.send() request method is making crash on Windows 10. *Testing environment:* Appcelerator Command-Line Interface, version 6.2.2 Titanium SDK: 6.1.0.GA Mobile Emulator 10.0.14393.0 1080p 6 inch 2GB Operating System: Microsoft Windows 10 Pro Version = 10.0.15063 Architecture = 32bit *Test Code:*
function syncTestForAppcelerator()
{

var url = "http://www.appcelerator.com";

var client = Ti.Network.createHTTPClient({

// function called when the response data is available

onload : function(e) {

Ti.API.info("Received text: " + this.responseText);

alert('success');

},

// function called when an error occurs, including a timeout

onerror : function(e) {

Ti.API.debug(e.error);

alert('error');

},

timeout : 5000 // in milliseconds

});

//Set Header

client.setRequestHeader("content-type", "application/json");

client.setRequestHeader("Authorization", "OAuth " + "00DN0000000Ap4u!AQ4AQIawfQBbd5YmcWpk5GEa7NjiLaQyP0m6phLLPM79L6KhSxxHYsIVNiOWo.RwNN0PIg");

// Prepare the connection.

client.open("GET", url);

// Send the request.

client.send();

}
*Testing Results:* The output log attached in the attachment file.(OutPut_log) Thanks

Attachments

FileDateSize
Error.png2017-07-24T10:33:53.000+000020316
OutPut_log2017-06-19T11:11:10.000+000043342

Comments

  1. Kota Iguchi 2018-12-27

    Closing as Fixed, confirmed that this does not crash on 7.5.0.GA. Feel free to reopen if that's not the case.

JSON Source