Last active
December 20, 2015 03:08
-
-
Save imsickofmaps/6060871 to your computer and use it in GitHub Desktop.
Line 212 is line 7 in my.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTTP/1.1 204 NO CONTENT | |
| Connection: keep-alive | |
| Content-Length: 0 | |
| Content-Type: text/html; charset=utf-8 | |
| Date: Tue, 23 Jul 2013 08:56:43 GMT | |
| Server: nginx/1.1.19 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.check_reply = function(reply, url, method, data, ignore_error) { | |
| var error; | |
| im.log("url:" + url); | |
| im.log("body type: '" + typeof(reply.body) + "'"); | |
| if (reply.success && (reply.code >= 200 && reply.code < 300)) { | |
| if (typeof reply.body != 'undefined') { | |
| var json = JSON.parse(reply.body); | |
| return json; | |
| } else { | |
| return null; | |
| } | |
| } | |
| else { | |
| error = reply.reason; | |
| } | |
| var error_msg = ("API " + method + " to " + url + " failed: " + | |
| error); | |
| if (typeof data != 'undefined') { | |
| error_msg = error_msg + '; data: ' + JSON.stringify(data); | |
| } | |
| im.log(error_msg); | |
| if (!ignore_error) { | |
| throw new GoNikeGHRError(error_msg); | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [2013-07-23T08:38:07.252935, INFO] Starting sandbox ... | |
| [2013-07-23T08:38:07.257501, INFO] Loading sandboxed code ... | |
| [2013-07-23T08:38:07.737882, INFO] url:http://qa-nghr.za.prk-host.net/api/mandl/?format=json | |
| [2013-07-23T08:38:07.740926, INFO] body type: 'string' | |
| [2013-07-23T08:38:08.116312, INFO] url:http://qa-nghr.za.prk-host.net/api/opinions/sms/?format=json | |
| [2013-07-23T08:38:08.117392, INFO] body type: 'string' | |
| [2013-07-23T08:38:08.473753, INFO] url:http://qa-nghr.za.prk-host.net/api/weeklyquiz/?format=json | |
| [2013-07-23T08:38:08.474208, INFO] body type: 'string' | |
| [2013-07-23T08:38:08.826409, INFO] url:http://qa-nghr.za.prk-host.net/api/opinions/view/?format=json | |
| [2013-07-23T08:38:08.827545, INFO] body type: 'string' | |
| [2013-07-23T08:38:09.259405, INFO] url:http://qa-nghr.za.prk-host.net/api/directory/?format=json | |
| [2013-07-23T08:38:09.259898, INFO] body type: 'string' | |
| [2013-07-23T08:38:09.275918, INFO] Loaded user +27845091190: {"current_state":"reg_sector","answers":{"reg_sector":"Hoooo","initial_state":"Male","reg_age":"25-35"}} | |
| [2013-07-23T08:38:09.277400, INFO] Content: null | |
| [2013-07-23T08:38:09.284493, INFO] Switched to state: reg_sector | |
| [2013-07-23T08:38:09.285451, INFO] Ending in state: reg_sector | |
| [2013-07-23T08:38:09.287219, INFO] Saving user: {"current_state":"reg_sector","answers":{"reg_sector":"Hoooo","initial_state":"Male","reg_age":"25-35"}} | |
| [2013-07-23T08:38:09.305549, INFO] Done. | |
| [2013-07-23T08:38:28.916091, INFO] Starting sandbox ... | |
| [2013-07-23T08:38:28.920903, INFO] Loading sandboxed code ... | |
| [2013-07-23T08:38:29.380307, INFO] url:http://qa-nghr.za.prk-host.net/api/mandl/?format=json | |
| [2013-07-23T08:38:29.381234, INFO] body type: 'string' | |
| [2013-07-23T08:38:29.719979, INFO] url:http://qa-nghr.za.prk-host.net/api/opinions/sms/?format=json | |
| [2013-07-23T08:38:29.720435, INFO] body type: 'string' | |
| [2013-07-23T08:38:30.090788, INFO] url:http://qa-nghr.za.prk-host.net/api/weeklyquiz/?format=json | |
| [2013-07-23T08:38:30.091855, INFO] body type: 'string' | |
| [2013-07-23T08:38:30.463085, INFO] url:http://qa-nghr.za.prk-host.net/api/opinions/view/?format=json | |
| [2013-07-23T08:38:30.464142, INFO] body type: 'string' | |
| [2013-07-23T08:38:30.812975, INFO] url:http://qa-nghr.za.prk-host.net/api/directory/?format=json | |
| [2013-07-23T08:38:30.813451, INFO] body type: 'string' | |
| [2013-07-23T08:38:30.820645, INFO] Loaded user +27845091190: {"current_state":"reg_sector","answers":{"reg_sector":"Hoooo","initial_state":"Male","reg_age":"25-35"}} | |
| [2013-07-23T08:38:30.821658, INFO] Content: Juru | |
| [2013-07-23T08:38:30.822638, INFO] Switched to state: reg_sector | |
| [2013-07-23T08:38:31.268640, ERROR] | |
| [2013-07-23T08:38:31.270949, ERROR] undefined:0 | |
| [2013-07-23T08:38:31.272795, ERROR] | |
| [2013-07-23T08:38:31.274593, ERROR] ^ | |
| [2013-07-23T08:38:31.276408, ERROR] SyntaxError: Unexpected end of input | |
| [2013-07-23T08:38:31.278204, ERROR] at Object.parse (native) | |
| [2013-07-23T08:38:31.280432, ERROR] at GoNikeGHR.self.check_reply (undefined:212:33) | |
| [2013-07-23T08:38:31.282271, ERROR] at GoNikeGHR.self.crm_post (undefined:180:29) | |
| [2013-07-23T08:38:31.284078, ERROR] at Promise.self.run_remaining_callbacks (/usr/lib/node_modules/vumigo_v01/lib/promise.js:58:22) | |
| [2013-07-23T08:38:31.285853, ERROR] at self.callback (/usr/lib/node_modules/vumigo_v01/lib/promise.js:48:18) | |
| [2013-07-23T08:38:31.287632, ERROR] at EventEmitter.self.load_code.ctxt (/var/praekelt/vumi-go/ve/src/vumi/vumi/application/sandboxer.js:81:30) | |
| [2013-07-23T08:38:31.289410, ERROR] at EventEmitter.emit (events.js:96:17) | |
| [2013-07-23T08:38:31.291205, ERROR] at self.data_from_stdin (/var/praekelt/vumi-go/ve/src/vumi/vumi/application/sandboxer.js:149:30) | |
| [2013-07-23T08:38:31.293282, ERROR] at Socket.self.run (/var/praekelt/vumi-go/ve/src/vumi/vumi/application/sandboxer.js:159:18) | |
| [2013-07-23T08:38:31.295110, ERROR] at Socket.EventEmitter.emit (events.js:96:17) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment