• Hi
    I read so many forums about 401 errors but nothing is helping me. my site health says
    The REST API request failed due to an error.
    Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (http_request_failed)

    i have ssl enabled on the site
    my setup is as follows

    dedicated fiber, dedicated dell server running centos 8 GUI
    my firewall is pfsense, i am using google dns 8.8.8.8
    i created a virtual server running debian for my website using ISPCONFIG 3.1
    i have php 7.3
    i have curl installed
    i do NOT see anything in the error logs at all, no logs anywhere, even if i add define wp debug to true in my wp.config file

    can anyone help me?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marius L. J.

    (@clorith)

    Hiya,

    Did you try using the plugins Troubleshooting Mode? If possible, try that, and see if the loopback error persists, if it goes away, a plugin, or your theme, is doing something that breaks the loopback functionality (possibly using the session_start() function, that’s been the most common reason at least to date)

    Thread Starter ariban99

    (@ariban99)

    ill try that, thank you

    Thread Starter ariban99

    (@ariban99)

    i tried that bt still showing the errors, i get a 404 error, can it be something with my setup? my server?

    Same configuration here and same error. Any chance to solve this issue ?

    Thank you

    • This reply was modified 4 years, 2 months ago by slapshot.
    Thread Starter ariban99

    (@ariban99)

    i solved mine by putting this in my child them function.php, it helps close a session as marius wrote above

    //fix loopback errors
    add_action(‘init’, function(){
    session_start(); //this loads variables to $_SESSION for reading
    if( empty($your_plugin_needs_session_saving) ){
    session_write_close(); //other plugins can restart a session again via session_start()
    } // if session writing is needed, close session after writing is done
    });

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘rest api and loopback failed’ is closed to new replies.