From 8086bfbeb63b0c8415ec217cf550b65f0da5b2f3 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Mon, 27 Jul 2026 14:28:42 +0530 Subject: [PATCH] Stop ABDM auto-sync polling on reconcile 404 --- app/Controllers/Patient.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Controllers/Patient.php b/app/Controllers/Patient.php index 9d6cb09..03c41f5 100644 --- a/app/Controllers/Patient.php +++ b/app/Controllers/Patient.php @@ -1476,9 +1476,10 @@ class Patient extends BaseController return $this->response->setJSON([ 'ok' => 1, 'phase' => 'REQUESTED', - 'poll_again' => 1, + // Avoid repeated not-found polling loops against bridge. + 'poll_again' => 0, 'request_id' => $flowRefId, - 'message' => 'Consent request is still being indexed. Please wait and retry automatically.', + 'message' => 'Consent status not found on bridge for this request yet. Please retry sync after 1-2 minutes.', 'data' => [ 'consent_request' => $consentResult, 'consent_reconcile' => $reconcileResult,