API Error: cURL error 28: Operation timed out after 30000 milliseconds with 0 by

#88556
  • Resolved Patrick Han
    Rank Math free

    Hi,

    I’d like to fix the “API Error: cURL error 28” I get when using SEO analysis.

    I want to try changing the timeout value of line 358 in class-seo-analyzer.php:

    $request = wp_remote_get( $api_url, [ ‘timeout’ => 20 ] );

    from 20 to 60, following the path: ..\wp-content\plugins\seo-by-rank-math\includes\modules\seo-analysis,

    but I can only get as far “as modules”, where there was no “seo-alaysis” to select. Can you advise on how I should proceed? Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I have seen you set it as solved, is it? Or do you still have questions?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hi,

    The issue has been resolved. I got confused by the path to the timeout value I saw in some older posts, but once I found my way to the line:

    $request = wp_remote_get( $api_url, [ β€˜timeout’ => 20 ] );

    via:

    /includes/modules/seo-analysis/class-seo-analyzer.php,

    I changed the value from 20 to 60 and the error was gone.

    Thanks for checking in!

    Alberto
    Rank Math business

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.