API Error: cURL error 7

#42327
  • Resolved Brad
    Rank Math free

    Just Activated MathRank and went through start up wizard. When I click on I get:
    API Error: cURL error 7: Failed to connect to 2606:4700:10::6816:3aa9: Network is unreachable

    How do I fix this?

    Thank you

    • This topic was modified 4 years ago by Brad.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Todd
    Rank Math free

    Hi Brad,

    Thanks a lot for your query and we are so sorry about the trouble this must have caused.

    Please check if cURL is enabled on your server. You can ask your web host about the same.

    If it is working, please give it another shot. If it still won’t work, please edit the following plugin file:
    /includes/modules/seo-analysis/class-seo-analyzer.php

    Then, change the following line (line number 358):
    $request = wp_remote_get( $api_url, [ 'timeout' => 20 ] );

    Increas the timeout value to 60:
    $request = wp_remote_get( $api_url, [ 'timeout' => 60 ] );

    The SEO analysis should start working as expected.

    Or, you could also use the online version of the tool which is just as good:
    https://rankmath.com/tools/seo-analyzer/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Brad
    Rank Math free

    I am not very technical. Can you tell me how to get to: /includes/modules/seo-analysis/class-seo-analyzer.php ??

    Todd
    Rank Math free

    Hi Brad,

    Before you do that, do you mind checking the SEO Analysis once again and running it?

    If not, you will need to use FTP or a File Manager to access the file.

    Let me know how it goes.

    Brad
    Rank Math free

    I found it. The change isn’t being accepted. I will contact my server

    Brad
    Rank Math free

    Update 1: I changed the code from 30 to 60. No improvement
    Update 2: I contacted my server and went through two attempts

    Attempt 1: Sent them the error code and they responded
    –> We have allowed an outgoing connection for the API and you should be able to use the plugin without any issues.

    I tried the Website scan again and received:
    API Error: Invalid server response.

    Attempt 2: Reached back to my server with this new info and the actual steps I take within Math Rank to launch the site scan, and they responded with:
    –> We just checked the logs on the server, but we did not see any issue from the server-side, so there may be some internal issue with the plugin, so we suggest you contact the plugin provider and ask them to have a look into this as that will certainly help.

    Any thoughts on next steps? What could we be missing? Is the API feed from Google or is from my server?

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math today.

    Your site makes an API call to our server and then this server responds with the SEO analysis data. Could you please share your site URL on the sensitive data section so that we can investigate this further?

    Looking forward to helping you. Thank you.

    ​​​​​​

    Brad
    Rank Math free

    Hello,

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

    Thank you.

    Todd
    Rank Math free

    Hi Brad,

    So sorry for the continued trouble.

    It looks like your website has been blocked by our Firewall perhaps because you tried the tool multiple times in a short span of time.

    I have alerted the server team about this and they will whitelist your website’s IP.

    We will post a reply here when that happens so I would really appreciate your patience in this matter.

    Thank 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 8 replies - 1 through 8 (of 8 total)

The ticket ‘API Error: cURL error 7’ is closed to new replies.