• remymedranda

    (@remymedranda)


    I keep having wizard getting stuck on the async test. It passes the initial test then hangs. At first the server was blocking the ip, but now i’ve allow all connections, and its still not working. Any ideas?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    I might add some debug logging in a future version, but maybe you can find some info in the server/ php errorlogs?

    frank

    Thread Starter remymedranda

    (@remymedranda)

    [Mon Mar 11 17:49:24 2019] [error] [client 173.3.242.18] mod_fcgid: read data timeout in 360 seconds

    That’s the error that comes up. My mod security is off also.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    That seems to imply that the request was sent but no response was received within the 6 minutes timeout, which indicates that probably somewhere between your server and GTMetrics something is still blocking things?

    Thread Starter remymedranda

    (@remymedranda)

    Do you know how to check via ssh?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    You could indeed try to execute curl from the command line to do a POST to gtmetrics to see if the same problem occurs there, yes.

    Thread Starter remymedranda

    (@remymedranda)

    How would I do this?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    that would be

    curl --user <your gtmetrix user/ email>:<your api key> --form url=<your url> https://gtmetrix.com/api/0.1/test

    upon which you’d get a response like;
    {"credits_left":81,"test_id":"2bi9vIGK","poll_state_url":"https://gtmetrix.com/api/0.1/test/2bi9vIGK"}

    and then you can poll for the result with:

    curl --user <your gtmetrix user/ email>:<your api key> https://gtmetrix.com/api/0.1/test/2bi9vIGK

    which in my case resulted in status queued;
    {"resources":{},"error":"","results":{},"state":"queued"}

    until after a couple of minutes I got;
    {"resources":{"report_pdf":"https://gtmetrix.com/api/0.1/test/2bi9vIGK/report-pdf","pagespeed":"https://gtmetrix.com/api/0.1/test/2bi9vIGK/pagespeed","har":"https://gtmetrix.com/api/0.1/test/2bi9vIGK/har","pagespeed_files":"https://gtmetrix.com/api/0.1/test/2bi9vIGK/pagespeed-files","report_pdf_full":"https://gtmetrix.com/api/0.1/test/2bi9vIGK/report-pdf?full=1","yslow":"https://gtmetrix.com/api/0.1/test/2bi9vIGK/yslow","screenshot":"https://gtmetrix.com/api/0.1/test/2bi9vIGK/screenshot"},"error":"","results":{"onload_time":830,"first_contentful_paint_time":465,"page_elements":15,"report_url":"https://gtmetrix.com/reports/blog.futtta.be/cEAXfT0q","redirect_duration":0,"first_paint_time":465,"dom_content_loaded_duration":null,"dom_content_loaded_time":829,"dom_interactive_time":545,"page_bytes":143946,"page_load_time":830,"html_bytes":15231,"fully_loaded_time":1890,"html_load_time":338,"rum_speed_index":1026,"yslow_score":95,"pagespeed_score":100,"backend_duration":163,"onload_duration":2,"connect_duration":175},"state":"completed"}

    So what might be leading to the timeout you mention (if not a connection issue) is the fact that a the GTMetrix job stays on the queue for too long a time. Guess we need debug logging in AsyncJS ??

    frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    i posted example code but it’s being held back for moderation, but if you’re inpatient there’s example code for CURL at https://gtmetrix.com/api/#api-test-start (scroll down a bit) ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Wizard getting stuck on Async test’ is closed to new replies.