Commit d4f4ee969dff35aedcdd1ba20eb1fc6e938a5744
1 parent
3e2f22c912
Exists in
master
tangani proxy error
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
httppulsakita.js
... | ... | @@ -67,6 +67,11 @@ function topupRequest(task, retry) { |
67 | 67 | console.log('Server Response: '); |
68 | 68 | console.log(httpResponseBody); |
69 | 69 | |
70 | + if (httpResponseBody.indexOf('502 Proxy Error') >= 0) { | |
71 | + callbackReport(task['requestId'], '54', '502 Proxy error'); | |
72 | + return; | |
73 | + } | |
74 | + | |
70 | 75 | xml(httpResponseBody, function(err, result) { |
71 | 76 | if (err) { |
72 | 77 | console.log('Gagal parsing XML respon server'); |