Title: Getting http 504 Gateway Timeout error
Last modified: May 28, 2021

---

# Getting http 504 Gateway Timeout error

 *  Resolved [shyni123](https://wordpress.org/support/users/shyni123/)
 * (@shyni123)
 * [5 years ago](https://wordpress.org/support/topic/getting-http-504-gateway-timeout-error/)
 * We are trying to post products through Woocommerce APIs (URL: /wp-json/wc/v3/
   products/). The products contain some attributes and some (8-10) images each.
   The image property consists of a downloadable URL and image name.
    The APIs are
   being sent in parallel (i.e. in multiple threads). We are observing that some
   of the requests are not completing and we are receiving http 504 Gateway Timeout
   error.
 * The issue is not consistent and mainly shows up when there are multiple images
   present. We want to know if there is any way we can avoid this error.
    -  This topic was modified 5 years ago by [shyni123](https://wordpress.org/support/users/shyni123/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgetting-http-504-gateway-timeout-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Austin M – a11n](https://wordpress.org/support/users/apmwebdev/)
 * (@apmwebdev)
 * [5 years ago](https://wordpress.org/support/topic/getting-http-504-gateway-timeout-error/#post-14493131)
 * Hi [@shyni123](https://wordpress.org/support/users/shyni123/)! I understand you’re
   running into some issues when trying to post products with multiple images via
   the API. There is no intrinsic limitation to this in the API itself, so you’re
   likely running into server limitations. I’d recommend talking to your hosting
   provider about this, as they would probably be able to best advise you on what
   exactly in the server configuration is causing this to happen and how you could
   implement a work-around.
 * I wasn’t clear from your message, but if running these API calls in parallel 
   is part of the issue, you could try running them sequentially instead. I’m not
   sure how feasible that is for you, but it might be worth a shot.
 * Let us know how that goes or if you have any further questions!
 *  [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * (@jricketts4)
 * [5 years ago](https://wordpress.org/support/topic/getting-http-504-gateway-timeout-error/#post-14517505)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

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

The topic ‘Getting http 504 Gateway Timeout error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/getting-http-504-gateway-timeout-error/#post-14517505)
 * Status: resolved