duplicate key problem solved biller detail

This commit is contained in:
Lincpay Tech
2025-11-05 18:45:05 +05:30
parent d18caaeed9
commit 3497d4f288
11 changed files with 71 additions and 78 deletions
@@ -182,7 +182,7 @@ public class AgentServiceImpl implements AgentService {
if ("INPROGRESS".equalsIgnoreCase(status)) {
if (System.currentTimeMillis() - startTime > maxWaitTimeMs) {
helper.updateInboundLogFailure(inboundLog, "Timeout after 40 seconds", "FAILED");
throw new CustomException("Timeout waiting for bill fetch completion", "FAILED", 408, "Bill fetch still in progress");
throw new CustomException("Timeout", "FAILED", 408, "Bill fetch still in progress");
}
Thread.sleep(intervalMs);
@@ -207,13 +207,7 @@ public class AgentServiceImpl implements AgentService {
Thread.currentThread().interrupt();
helper.updateInboundLogFailure(inboundLog, e.getMessage(), "INTERRUPTED");
throw new CustomException("Thread interrupted during bill status check");
} catch (CustomException ce) {
throw ce;
} catch (Exception e) {
log.error("❌ Exception in fetchBillById(): {}", e.getMessage(), e);
helper.updateInboundLogFailure(inboundLog, e.getMessage(), "EXCEPTION");
throw new CustomException("Bill Fetch by ID failed: " + e.getMessage());
}
}
}
}