• Resolved ericjam

    (@ericjam)


    “Checking compatibility” is spamming my console log with calls to
    /wp-json/google-site-kit/v1/core/site/data/health-checks?_locale=user

    {
      "code": "rest_forbidden",
      "message": "Sorry, you are not allowed to do that.",
      "data": {
        "status": 401
      }
    }

    I can’t even proceed to setup

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Hi @ericjam,

    Thanks for reaching out. The plugin does perform some checks to ensure Site Kit is compatible with users sites, although this shouldn’t be a time or process consuming check.

    In your case as you’re encountering a 401 error with the code you provide this may indicate an issue with your WordPress REST API. If you’d like to share the following we can hopefully determine the cause and provide some suggestions to ensure Site Kit works as expected:

    1. Your Site Health information. You can use this form to share privately if preferred.
    2. Do you see any errors or warnings on your Site Kit dashboard during setup, which may be related to the console error you see? If so please share.
    3. Do you see any warnings or errors when checking your Site Health status (Tools > Site Health > Status), which differs from your Site Health information requested above? Such errors may include REST endpoint references.

    Let me know if you have any questions with the above.

    Thread Starter ericjam

    (@ericjam)

    The problem is that my WP install is in a different directory than the root, so when I move the install to the home dir, the AJAX call doesn’t throw the error. The ajax call needs to refer to the actual site installation path I believe.

    Plugin Support James Osborne

    (@jamesosborne)

    Hi @ericjam,

    Site Kit can be set up if your WordPress site URL doesn’t match your site address. If you want us to review your set up please share the information requested above and we can do so, or investigate this further.

    Plugin Support James Osborne

    (@jamesosborne)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘health-checks ajax spam on new Site Kit setup’ is closed to new replies.