Title: rest api and loopback failed
Last modified: May 11, 2020

---

# rest api and loopback failed

 *  [ariban99](https://wordpress.org/support/users/ariban99/)
 * (@ariban99)
 * [6 years ago](https://wordpress.org/support/topic/rest-api-and-loopback-failed/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frest-api-and-loopback-failed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [6 years ago](https://wordpress.org/support/topic/rest-api-and-loopback-failed/#post-12879087)
 * 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](https://wordpress.org/support/users/ariban99/)
 * (@ariban99)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/rest-api-and-loopback-failed/#post-12923566)
 * ill try that, thank you
 *  Thread Starter [ariban99](https://wordpress.org/support/users/ariban99/)
 * (@ariban99)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/rest-api-and-loopback-failed/#post-12923664)
 * i tried that bt still showing the errors, i get a 404 error, can it be something
   with my setup? my server?
 *  [slapshot](https://wordpress.org/support/users/slapshot/)
 * (@slapshot)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/rest-api-and-loopback-failed/#post-13365967)
 * Same configuration here and same error. Any chance to solve this issue ?
 * Thank you
    -  This reply was modified 5 years, 8 months ago by [slapshot](https://wordpress.org/support/users/slapshot/).
 *  Thread Starter [ariban99](https://wordpress.org/support/users/ariban99/)
 * (@ariban99)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/rest-api-and-loopback-failed/#post-13366805)
 * 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.

 * ![](https://ps.w.org/health-check/assets/icon.svg?rev=1828244)
 * [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/health-check/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/health-check/)
 * [Active Topics](https://wordpress.org/support/plugin/health-check/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/health-check/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/health-check/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [ariban99](https://wordpress.org/support/users/ariban99/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/rest-api-and-loopback-failed/#post-13366805)
 * Status: not resolved