• Resolved shyni123

    (@shyni123)


    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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @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

    (@jricketts4)

    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.