Issue with REST API and Loopback in WordPress Installed on Windows Server

[ad_1]

Hello @ghavami,

It seems like you’ve done a thorough job investigating and trying various solutions. The cURL error 28 you’re encountering usually indicates a timeout issue, and it might not be directly related to WordPress but rather to the server environment.

Here are a few additional suggestions to troubleshoot and resolve the issues:

1. You can try increasing the cURL timeout in your WordPress site’s configuration. Edit your wp-config.php file and add or modify the following line: define('WP_HTTP_TIMEOUT', 60);
*This sets the timeout to 60 seconds. Adjust as needed.

2. Check the server logs for any relevant error messages or warnings. The Windows Event Viewer and PHP error logs can be helpful in identifying issues. Refer to your hosting provider’s support on how to view your server logs.

3. Monitor the server’s resource usage (CPU, memory) during API requests. If your server is running out of resources, it might cause timeouts.

All the best.

the issue was with the C:\Windows\System32\drivers\etc\hosts file. The WordPress domain along with the IP needed to be defined here.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer