Title: 504 error on curl
Last modified: June 22, 2021

---

# 504 error on curl

 *  Resolved [Ahmis](https://wordpress.org/support/users/ahmis/)
 * (@ahmis)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/504-error-on-curl/)
 * We are using the latest version of the plugin (2.2.3) and when using curl to 
   synch to WordPress the result is following:
 *     ```
       <html>
       <head><title>504 Gateway Time-out</title></head>
       <body>
       <center><h1>504 Gateway Time-out</h1></center>
       <hr><center>openresty</center>
       </body>
       </html>
       ```
   
 * We noticed that this happens on 2 websites (on different servers, other one is
   a single site, other is on multisite). These two websites has lots of users and
   content.
 * We also tested on that multisite installation with couple of smaller sites and
   curl works fine. Any tips how to solve this?

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

 *  Plugin Author [schakko](https://wordpress.org/support/users/schakko/)
 * (@schakko)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/504-error-on-curl/#post-14589062)
 * The synchronization of users require a lot of time. Please check after how long
   the 504 error occurs and check if this correlates to any timeout setting of your
   upstream server (in Apache e.g. TimeOut or KeepAliveTimeout). You can increase
   the according value.
 * If you are not able to increase those values, you can use the wp-cli premium 
   extension to run the synchronization without using HTTP.
 *  Thread Starter [Ahmis](https://wordpress.org/support/users/ahmis/)
 * (@ahmis)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/504-error-on-curl/#post-14602445)
 * Thank you! We changed timeout settings on the server and this works now.

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

The topic ‘504 error on curl’ is closed to new replies.

 * ![](https://ps.w.org/next-active-directory-integration/assets/icon-256x256.png?
   rev=2517660)
 * [Next Active Directory Integration](https://wordpress.org/plugins/next-active-directory-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/next-active-directory-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/next-active-directory-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/next-active-directory-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/next-active-directory-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/next-active-directory-integration/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ahmis](https://wordpress.org/support/users/ahmis/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/504-error-on-curl/#post-14602445)
 * Status: resolved