Commit cf6aa22fba98bbe8113bbabf1367137547bdedc1

Authored by Adhidarma Hadiwinoto
1 parent 69f39c3cf1
Exists in master

retry if not 200

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

... ... @@ -310,6 +310,11 @@ function errorOnTopUpReport(topUpReportError) {
310 310  
311 311 if (topUpReportError.res && topUpReportError.res.statusCode) {
312 312 logger.verbose('Partner response with status code:' + topUpReportError.res.statusCode);
  313 +
  314 + if (topUpReportError.res.statusCode != '200') {
  315 + logger.warn('Going to resend topUpReport because status code is not 200 (' + topUpReportError.res.statusCode + ')');
  316 + return true;
  317 + }
313 318 }
314 319 } catch(e) {}
315 320