{"action":"created","issue":{"url":"https://api.github.com/repos/Pushwoosh/pushwoosh-appcelerator-titanium/issues/6","labels_url":"https://api.github.com/repos/Pushwoosh/pushwoosh-appcelerator-titanium/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Pushwoosh/pushwoosh-appcelerator-titanium/issues/6/comments","events_url":"https://api.github.com/repos/Pushwoosh/pushwoosh-appcelerator-titanium/issues/6/events","html_url":"https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/issues/6","id":99920270,"number":6,"title":"Can't use Ti.Network.createHTTPClient in success callback","user":{"login":"63ek","id":1884450,"avatar_url":"https://avatars.githubusercontent.com/u/1884450?v=3","gravatar_id":"","url":"https://api.github.com/users/63ek","html_url":"https://github.com/63ek","followers_url":"https://api.github.com/users/63ek/followers","following_url":"https://api.github.com/users/63ek/following{/other_user}","gists_url":"https://api.github.com/users/63ek/gists{/gist_id}","starred_url":"https://api.github.com/users/63ek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/63ek/subscriptions","organizations_url":"https://api.github.com/users/63ek/orgs","repos_url":"https://api.github.com/users/63ek/repos","events_url":"https://api.github.com/users/63ek/events{/privacy}","received_events_url":"https://api.github.com/users/63ek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-09T19:04:42Z","updated_at":"2015-08-10T16:02:49Z","closed_at":null,"body":"Undefined is not an object (evaluating 'Ti.Network.createHTTPClient')\r\n\r\n```javascript\r\nvar pushnotifications =  require(\"com.pushwoosh.module\");\r\n\r\nfunction test_http() {\r\n\tvar httpRegister = Ti.Network.createHTTPClient({\r\n\t\tonload : function() {\r\n\t\t\tTi.API.error(\"Onload\");\r\n\t\t},\r\n\t\tonerror : function() {},\r\n\t\ttimeout : 5000\r\n\t});\r\n\r\n\thttpRegister.open(\"GET\", \"https://google.com\");\r\n\thttpRegister.send();\r\n}\r\n\r\n/* test function */\r\ntest_http();\r\n\r\npushnotifications = pushNotificationsRegister({\r\n\t\"pw_appid\":\"<ID>\",\r\n\tsuccess:function(e) {\t\t\r\n\t\ttest_http();\r\n\t},\r\n\terror:function(e) {\r\n\t\tTi.API.error(\"Error during registration: \" + e.error);\r\n\t},\r\n\tcallback:function(e) {\r\n\t\tTi.API.info('JS message event: ' + JSON.stringify(e.data));\r\n\t}\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/Pushwoosh/pushwoosh-appcelerator-titanium/issues/comments/129508043","html_url":"https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/issues/6#issuecomment-129508043","issue_url":"https://api.github.com/repos/Pushwoosh/pushwoosh-appcelerator-titanium/issues/6","id":129508043,"user":{"login":"fstrazzante","id":9489798,"avatar_url":"https://avatars.githubusercontent.com/u/9489798?v=3","gravatar_id":"","url":"https://api.github.com/users/fstrazzante","html_url":"https://github.com/fstrazzante","followers_url":"https://api.github.com/users/fstrazzante/followers","following_url":"https://api.github.com/users/fstrazzante/following{/other_user}","gists_url":"https://api.github.com/users/fstrazzante/gists{/gist_id}","starred_url":"https://api.github.com/users/fstrazzante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fstrazzante/subscriptions","organizations_url":"https://api.github.com/users/fstrazzante/orgs","repos_url":"https://api.github.com/users/fstrazzante/repos","events_url":"https://api.github.com/users/fstrazzante/events{/privacy}","received_events_url":"https://api.github.com/users/fstrazzante/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T16:02:49Z","updated_at":"2015-08-10T16:02:49Z","body":"You're right man! I set both the calls with timeout 0 and now it works! Thank you."}}