Done add print( json.prettify( event ) ) in event responses
Android Device Output
---------- Device Log Starts ---------- GT-I9300: mDVFSHelper.acquire() GT-I9300: mDVFSHelper.release() GT-I9300: Platform: GT-I9300 / ARM Neon / 4.3 / Mali-400 MP / OpenGL ES 2.0 / 2017.3163 / español | US | es\_US | es GT-I9300: Wed Nov 1 17:21:40 2017 =\> Authenticating GT-I9300: Wed Nov 1 17:21:41 2017 =\> RESPONSE LOGIN: {"status":"ok","userid":"611","username":"phonemas"} GT-I9300: { GT-I9300: "bytesEstimated":52, GT-I9300: "bytesTransferred":52, GT-I9300: "name":"networkRequest", GT-I9300: "phase":"ended", GT-I9300: "requestId":"\<type 'userdata' is not supported by JSON.\>", GT-I9300: "response":"{\"status\":\"ok\",\"userid\":\"611\",\"username\":\"phonemas\"}", GT-I9300: "responseHeaders":{ GT-I9300: "Connection":"Keep-Alive", GT-I9300: "Content-Length":"52", GT-I9300: "Date":"Wed, 01 Nov 2017 22:21:41 GMT", GT-I9300: "Set-Cookie":"f3c23b987a2a06f5da5f9d601a36ff96=5017nct735j6offfn0eims98d3; path=/; secure; HttpOnly,f3c23b987a2a06f5da5f9d601a36ff96=mj75q43hmajssv0ihsc00i0eh1; path=/; secure; HttpOnly,f3c23b987a2a06f5da5f9d601a36ff96=mj75q43hmajssv0ihsc00i0eh1; path=/; secure; HttpOnly,joomla\_user\_state=logged\_in; path=/; secure; httponly", GT-I9300: "Content-Disposition":"attachment;filename=\"response.json\"", GT-I9300: "X-Android-Received-Millis":"1509574901625", GT-I9300: "X-Android-Sent-Millis":"1509574900848", GT-I9300: "Keep-Alive":"timeout=5, max=100", GT-I9300: "X-Powered-By":"PHP/5.6.25RC1", GT-I9300: "Content-Type":"application/json", GT-I9300: "HTTP-STATUS-LINE":"HTTP/1.1 200 OK", GT-I9300: "Server":"Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod\_fcgid/2.3.9 PHP/5.6.25RC1" GT-I9300: }, GT-I9300: "responseType":"text", GT-I9300: "status":200, GT-I9300: "url":"https://XXXXXXX.com/api/v1/post/user/login", GT-I9300: "isError":false GT-I9300: } GT-I9300: Wed Nov 1 17:21:41 2017 =\> Authenticated :) GT-I9300: Wed Nov 1 17:21:41 2017 =\> Bringing Categories GT-I9300: Wed Nov 1 17:21:41 2017 =\> RESPONSE DEPLOY CATS: {"status":"ko","error\_code":"REQ\_MNF","error\_description":"Module not found"} GT-I9300: { GT-I9300: "bytesEstimated":77, GT-I9300: "bytesTransferred":77, GT-I9300: "name":"networkRequest", GT-I9300: "phase":"ended", GT-I9300: "requestId":"\<type 'userdata' is not supported by JSON.\>", GT-I9300: "response":"{\"status\":\"ko\",\"error\_code\":\"REQ\_MNF\",\"error\_description\":\"Module not found\"}", GT-I9300: "responseHeaders":{ GT-I9300: "Connection":"Keep-Alive", GT-I9300: "Content-Length":"77", GT-I9300: "Date":"Wed, 01 Nov 2017 22:21:42 GMT", GT-I9300: "Set-Cookie":"f3c23b987a2a06f5da5f9d601a36ff96=rjcr8lr97qv73vtr2bk1kmak52; path=/; secure; HttpOnly", GT-I9300: "Content-Disposition":"attachment;filename=\"response.json\"", GT-I9300: "X-Android-Received-Millis":"1509574901955", GT-I9300: "X-Android-Sent-Millis":"1509574901650", GT-I9300: "Keep-Alive":"timeout=5, max=99", GT-I9300: "X-Powered-By":"PHP/5.6.25RC1", GT-I9300: "Content-Type":"application/json", GT-I9300: "HTTP-STATUS-LINE":"HTTP/1.1 200 OK", GT-I9300: "Server":"Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod\_fcgid/2.3.9 PHP/5.6.25RC1" GT-I9300: }, GT-I9300: "responseType":"text", GT-I9300: "status":200, GT-I9300: "url":"https:/XXXXXXX.com/api/v1/get/content/categories", GT-I9300: "isError":false GT-I9300: } GT-I9300: Wed Nov 1 17:21:41 2017 =\> NO deploying cats :(
Simulator Output
Copyright (C) 2009-2017 C o r o n a L a b s I n c . Version: 3.0.0 Build: 2017.3163 Loading project from: ~/Documents/Corona Projects/Joomla API Project sandbox folder: ~/Library/Application Support/Corona Simulator/Joomla API-9A727CDABC6782D70E95CC27F73448CA Platform: Sensation / x86\_64 / 10.12.3 / Intel HD Graphics 4000 OpenGL Engine / 2.1 INTEL-10.22.29 / 2017.3163 / es-CO | CO | es\_CO | es Wed Nov 1 17:17:23 2017 =\> Authenticating Wed Nov 1 17:17:24 2017 =\> RESPONSE LOGIN: {"status":"ok","userid":"611","username":"phonemas"} { "bytesEstimated":52, "bytesTransferred":52, "name":"networkRequest", "phase":"ended", "requestId":"\<type 'userdata' is not supported by JSON.\>", "response":"{\"status\":\"ok\",\"userid\":\"611\",\"username\":\"phonemas\"}", "responseHeaders":{ "Connection":"Keep-Alive", "Content-Type":"application/json", "Date":"Wed, 01 Nov 2017 22:17:23 GMT", "Set-Cookie":"f3c23b987a2a06f5da5f9d601a36ff96=uoifj6lb6k9pnef34tkfg108v0; path=/; secure; HttpOnly, 20d682d3bb9da03673d621808384e810=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/, f3c23b987a2a06f5da5f9d601a36ff96=s0l16tcrr8q9dl9h1v73glugh2; path=/; secure; HttpOnly, f3c23b987a2a06f5da5f9d601a36ff96=s0l16tcrr8q9dl9h1v73glugh2; path=/; secure; HttpOnly, joomla\_user\_state=logged\_in; path=/; secure; httponly", "Content-Disposition":"attachment;filename=\"response.json\"", "Keep-Alive":"timeout=5, max=100", "X-Powered-By":"PHP/5.6.25RC1", "Content-Length":"52", "Server":"Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod\_fcgid/2.3.9 PHP/5.6.25RC1" }, "responseType":"text", "status":200, "url":"https://appcc.phonemas.com/api/v1/post/user/login", "isError":false } Wed Nov 1 17:17:24 2017 =\> Authenticated :) Wed Nov 1 17:17:24 2017 =\> Bringing Categories Wed Nov 1 17:17:24 2017 =\> RESPONSE DEPLOY CATS: {"status":"ok","total":6,"categories":[{"id":"10","title":"Cat APP 01","description":"\<p\>Contenidos categor\u00eda 01 para la APP\<\/p\>","parent\_id":"9","numitems":null},{"id":"11","title":"Cat APP 02","description":"\<p\>Contenidos Categor\u00eda APP 02\<\/p\>","parent\_id":"9","numitems":null},{"id":"12","title":"Cat APP 03","description":"\<p\>Contenidos Categor\u00eda APP 03\<\/p\>","parent\_id":"9","numitems":null},{"id":"13","title":"Cat APP 04","description":"\<p\>Contenidos Categor\u00eda APP 04\<\/p\>","parent\_id":"9","numitems":null},{"id":"14","title":"Cat APP 05","description":"\<p\>Contenidos Categor\u00eda APP 05\<\/p\>","parent\_id":"9","numitems":null},{"id":"15","title":"Cat APP 06","description":"\<p\>Contenidos Categor\u00eda APP 06\<\/p\>","parent\_id":"9","numitems":null}]} { "bytesEstimated":780, "bytesTransferred":780, "name":"networkRequest", "phase":"ended", "requestId":"\<type 'userdata' is not supported by JSON.\>", "response":"{\"status\":\"ok\",\"total\":6,\"categories\":[{\"id\":\"10\",\"title\":\"Cat APP 01\",\"description\":\"\<p\>Contenidos categor\\u00eda 01 para la APP\<\\/p\>\",\"parent\_id\":\"9\",\"numitems\":null},{\"id\":\"11\",\"title\":\"Cat APP 02\",\"description\":\"\<p\>Contenidos Categor\\u00eda APP 02\<\\/p\>\",\"parent\_id\":\"9\",\"numitems\":null},{\"id\":\"12\",\"title\":\"Cat APP 03\",\"description\":\"\<p\>Contenidos Categor\\u00eda APP 03\<\\/p\>\",\"parent\_id\":\"9\",\"numitems\":null},{\"id\":\"13\",\"title\":\"Cat APP 04\",\"description\":\"\<p\>Contenidos Categor\\u00eda APP 04\<\\/p\>\",\"parent\_id\":\"9\",\"numitems\":null},{\"id\":\"14\",\"title\":\"Cat APP 05\",\"description\":\"\<p\>Contenidos Categor\\u00eda APP 05\<\\/p\>\",\"parent\_id\":\"9\",\"numitems\":null},{\"id\":\"15\",\"title\":\"Cat APP 06\",\"description\":\"\<p\>Contenidos Categor\\u00eda APP 06\<\\/p\>\",\"parent\_id\":\"9\",\"numitems\":null}]}", "responseHeaders":{ "Connection":"Keep-Alive", "Content-Type":"application/json", "Content-Length":"780", "Keep-Alive":"timeout=5, max=99", "X-Powered-By":"PHP/5.6.25RC1", "Date":"Wed, 01 Nov 2017 22:17:24 GMT", "Content-Disposition":"attachment;filename=\"response.json\"", "Server":"Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod\_fcgid/2.3.9 PHP/5.6.25RC1" }, "responseType":"text", "status":200, "url":"https://XXXXXX.com/api/v1/get/content/categories", "isError":false } Wed Nov 1 17:17:24 2017 =\> Deploying Cats END Wed Nov 1 17:17:25 2017 =\> RESPONSE LOGOUT: {"status":"ok"} { "bytesEstimated":15, "bytesTransferred":15, "name":"networkRequest", "phase":"ended", "requestId":"\<type 'userdata' is not supported by JSON.\>", "response":"{\"status\":\"ok\"}", "responseHeaders":{ "Connection":"Keep-Alive", "Content-Type":"application/json", "Date":"Wed, 01 Nov 2017 22:17:24 GMT", "Set-Cookie":"20d682d3bb9da03673d621808384e810=1; expires=Thu, 02-Nov-2017 22:17:25 GMT; Max-Age=86400; path=/; secure; httponly, f3c23b987a2a06f5da5f9d601a36ff96=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0, joomla\_user\_state=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/", "Content-Disposition":"attachment;filename=\"response.json\"", "Keep-Alive":"timeout=5, max=98", "X-Powered-By":"PHP/5.6.25RC1", "Content-Length":"15", "Server":"Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod\_fcgid/2.3.9 PHP/5.6.25RC1" }, "responseType":"text", "status":200, "url":"https://XXXXXX.com/api/v1/get/user/logout", "isError":false } Wed Nov 1 17:17:25 2017 =\> Logout OK :)