Commit da19a3d22549c7126698569a89cb19be4d1c34bd
1 parent
bf9c8ca59d
Exists in
master
penanganan invalid specs
Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff
partner-bnisp.js
... | ... | @@ -100,6 +100,14 @@ function _hitTopup(task, isCheckStatus) { |
100 | 100 | return; |
101 | 101 | } |
102 | 102 | |
103 | + if (body.trim() == 'invalid specs') { | |
104 | + let rc = '40'; | |
105 | + | |
106 | + logger.warn('Invalid specs', {task: task, responseBody: body}); | |
107 | + callbackReport(task.requestId, rc, body); | |
108 | + return; | |
109 | + } | |
110 | + | |
103 | 111 | logger.verbose('Got response from partner', {task: task, responseBody: body}); |
104 | 112 | |
105 | 113 | const responseData = parseResponseBody(body); |