• Resolved Malcure Web Security

    (@malcure)


    Apparently the plugin makes a request like /wp-json/google-site-kit/v1/data/?request= to fetch the data.

    However in my case the request (url encoded JSON data) is 5818 characters which is way beyond a reasonable GET request length. May be you should use POST instead?

    The long GET request ends in:
    This site can’t be reached … unexpectedly closed the connection.
    ERR_CONNECTION_CLOSED

Viewing 8 replies - 1 through 8 (of 8 total)
  • Renee Johnson

    (@reneesoffice)

    @malcure thanks for your report!

    Could you tell me:

    1) When did you see this error?

    2) Who is your host and do you know if they block incoming REST API requests?

    3) Do you have any plugins or measures implemented under known limitations in our documentation?

    Thread Starter Malcure Web Security

    (@malcure)

    1. Error appears in Browser Tools > Network tab when I navigate to /wp-admin/admin.php?page=googlesitekit-dashboard

    2. Linux do 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) x86_64. This is a Digital Ocean droplet, PHP-FPM 7.3.4-2, Apache Server version: Apache/2.4.38 (Debian).
    2a. REST API is working fine.

    3. Disabled WP Super Cache, Monster Insights and ModSecurity. Now it doesn’t show the loading gray boxes but says “…data is not yet available, please check back later.” (which I suppose it shows in case it’s not able to fetch the data). But the ?request query var did get a 200 response with the data like (trimmed):

    pagespeed-insights::pagespeed::[uuid]: {errors: {500: [,…]}, error_data: {500: {status: 500, reason: “lighthouseError”}}}

    I’m going to watch this for another 24-48 hours and report back. Thanks for attending to this.

    Renee Johnson

    (@reneesoffice)

    @malcure definitely appreciate the details and update. Let’s touch base soon!

    Thread Starter Malcure Web Security

    (@malcure)

    @reneesoffice

    Hi,

    It’s been about 24 hours. ModSecurity is off. WP Super Cache and Monster Insights are enabled. The request is returning HTTP 200. The only issue is it still shows “…data is not yet available, please check back later.” Deleting the cache doesn’t help.

    If this is normal or we have a timeline about how long it takes to gather data then we can conclude that it is working as designed. We have about 50 unique visitors daily in GA and the site is at least 6 months old.

    Renee Johnson

    (@reneesoffice)

    @malcure thanks for the update! For some users, it can take up to a couple of days. Given that your site is established the data should be there by now.

    Could you confirm if that is the case or not? If not, could you check for any browser console errors? Thanks again!

    Thread Starter Malcure Web Security

    (@malcure)

    No console errors at all. And now I can see the data from GA. Guess search console may take some more time. Please feel free to set this as resolved.

    Really appreciate your help.

    Renee Johnson

    (@reneesoffice)

    thanks for the update @malcure ! Glad to hear things are resolving. Feel free to leave a review about your experience with Site Kit if you like.

    Thread Starter Malcure Web Security

    (@malcure)

    Of course ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No Data: Too long GET request to API End-Point’ is closed to new replies.