SEO Errors – pre-emptive.com.au

#1032963
  • Resolved Julijana Chochovski
    Rank Math free

    HI, we are a new customer that has recently installed and configured Rankmath. The analyser completes 100% but displays message “API Error: cURL error 28: Operation timed out after 30002 milliseconds with 0 bytes received” via the pluggin in WordPress. An error also occurs when trying to run it directly via our account on your site aswell. I have tried turning off the Wordfence firewall in WordPress, tried whitelisting api.rankmath.com in wordpress and also tried increasing the php.ini execution timeout in our cpanel but no joy. We are located in Australia and the site is hosted by Dreamscape. Any suggestions please. Thank you Julijana

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    We apologize for the issue you are facing with the API error in Rank Math. The error message "cURL error 28: Operation timed out after 30002 milliseconds with 0 bytes received" typically indicates that the request to the API is timing out, which can happen for several reasons. Here are a few suggestions to help you troubleshoot this issue:

    1. Check Website Status: Ensure that your website is returning a 200 status code. You can check the status of your website using this tool: Check Website Status. Enter your URL and click Check Status.
      Check website status with httpstatus tool

    2. API Timeout: If your website takes longer than 30 seconds to load, it may cause a timeout. You might want to check your server performance and optimize it if necessary.

    3. Firewall Settings: Since you mentioned turning off the Wordfence firewall, ensure that there are no other security settings or firewalls (including server-level firewalls) blocking the API requests. You may need to whitelist the IP 46.30.211.100 and the user-agent RankMathApi/2.0.2; https://rankmath.com in your firewall settings.

    4. Contact Hosting Provider: Since you are hosted by Dreamscape, it might be helpful to reach out to them to see if there are any server-side issues or configurations that could be affecting the API requests.

    5. Locally Hosted Website: If your site is hosted locally or in a restricted environment, the SEO Analyzer module will not work properly and may return an API error.

    If you continue to experience issues after trying these steps, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern, and we hope to resolve it quickly for you!

    Sources:
    Why Am I Getting "API Error: HTTP 400" Error » Rank Math
    Why Am I Getting "API Error: HTTP 400" Error » Rank Math

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Please follow this guide to see if this fixes the issue for you:
    https://www.wpbeginner.com/wp-tutorials/how-to-fix-curl-error-28-connection-timed-out-after-x-milliseconds/

    If the issue persists, please edit the following plugin file:
    wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/class-seo-analyzer.php

    Then, change the following line (line number 405):

    $request = wp_remote_get( $api_url, [ 'timeout' => 30 ] );

    to increase the timeout value to 60:

    $request = wp_remote_get( $api_url, [ 'timeout' => 60 ] );`

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘SEO Errors – pre-emptive.com.au’ is closed to new replies.