The following changes were made by the replace_file_content tool to: /root/aadharbot/index.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -1268,7 +1268,13 @@ try { const url = `https://info.apikendra.cc/search/any?q=${mobile}`; const response = await fetch(url); - let data = await response.json(); + const textResp = await response.text(); + let data = {}; + try { + data = JSON.parse(textResp); + } catch (e) { + console.error("Number API returned non-JSON:", textResp.substring(0, 100)); + } // Normalize response from new API to match old expected structure if (data.status === "success" && Array.isArray(data.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.