[TIMOB-24846] Windows: in the Ti.Network.createHTTPClient, the send() request method is making crash
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-12-27T01:01:11.000+0000 |
| Affected Version/s | Release 6.1.0, Release 6.1.1 |
| Fix Version/s | Release 7.5.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Mostafizur Rahman |
| Assignee | Kota Iguchi |
| Created | 2017-06-19T11:14:06.000+0000 |
| Updated | 2018-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
| File | Date | Size |
|---|---|---|
| Error.png | 2017-07-24T10:33:53.000+0000 | 20316 |
| OutPut_log | 2017-06-19T11:11:10.000+0000 | 43342 |
Closing as Fixed, confirmed that this does not crash on 7.5.0.GA. Feel free to reopen if that's not the case.