The following changes were made by the replace_file_content tool to: /root/aadharbot/aadhaar_service.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -174,7 +174,8 @@ const response = await fetch('https://tathya.uidai.gov.in/retrieveEidUid/ext/v1/generic/retrieveuideid', { method: 'POST', headers: getHeaders(), - body: JSON.stringify(reqBody) + body: JSON.stringify(reqBody), + signal: AbortSignal.timeout(20000) }); const data = await response.json(); console.log("UIDAI Retrieve OTP Data:", data); @@ -218,7 +218,8 @@ const response = await fetch('https://tathya.uidai.gov.in/retrieveEidUid/ext/v1/generic/retrieveuideid', { method: 'POST', headers: getHeaders(), - body: JSON.stringify(reqBody) + body: JSON.stringify(reqBody), + signal: AbortSignal.timeout(20000) }); const data = await response.json(); console.log("verifyotp UIDAI Response:", data); @@ -255,7 +255,8 @@ captchaValue: captchaValue, transactionId: crypto.randomUUID(), resendOTP: false - }) + }), + signal: AbortSignal.timeout(20000) }); const data = await response.json(); if (data.status === 'Success' || (data.status && data.status.toLowerCase() === 'success')) { @@ -282,7 +282,8 @@ mask: false, otp: otp, otpTxnId: otpTxnId - }) + }), + signal: AbortSignal.timeout(30000) }); const data = await response.json(); console.log("PDF Verify Response:", data); [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.