Skip to content

Magento 2 – Customer sometimes receiving 503 Error when performing random actions on the cart

I’m experiencing an issue where customers are intermittently receiving a 503 error (maintenance flag) when performing certain actions on the cart in Magento 2.

For example, in one scenario, a guest user adds a product to the cart, proceeds to the login page, logs in, and then navigates back to the cart. Upon loading the available shipping methods in the cart, the customer may encounter a 503 error. However, upon refreshing the page, the error disappears.

Another scenario involves a guest user adding a product to the cart, proceeding to the login page, logging in, and then applying a coupon code for free shipping on the cart page. In this case, the customer receives a 503 error upon applying the coupon code, but after refreshing the page, the error is resolved, and the coupon code can be successfully applied.

I have checked the logs, but there are no errors related to this issue.

Could you please provide guidance on what could be causing this issue and how I can resolve it?