Hi @eprince,
I have received your diagnostic and have reviewed the results along with anything that might be causing an issue including CDN and installed plugins.
What is unusual about the error you’re receiving when trying to repair is that the diagnostics communication to our servers and back to our site is reporting back as OK. Usually a communication error such as this API error would go hand-in-hand with wider communication errors. However, there are still some things you can check.
Head over to your site and ensure Wordfence > All Options > General Wordfence Options > How does Wordfence get IPs. Since you’re using Cloudflare, select “Use the Cloudflare “CF-Connecting-IP” HTTP header to get a visitor IP. Only use if you’re using Cloudflare.”. I actually suspect you’re already using this but want to be thorough.
Its possible your site IP is either incorrect or not whitelisted in Cloudflare. I see that your WordPress cron jobs are overdue too, which means it’s not just Wordfence that can’t connect back, but WordPress is failing when trying to start cron.
Check and verify the correct IP was whitelisted in Cloudflare. If you want to verify the sites IP address, navigate to Wordfence > Tools > Diagnostic > Connectivity and you will see “IP(s) used by this server“. Make sure the first IP here is the IP that is whitelisted in Cloudflare.
Also, if you have Cloudflare’s “under attack” mode enabled too, you could try temporarily disabling that. It’s meant to block automated connections and could be related.
Thanks,
Peter.