When I'm trying to do purchase as a Guest user, Payment module calls $this->checkoutSession->restoreQuote(); while redirecting back to Magento store.

It will return 502 Bad gateway error only for guest users.

For registered users that works well.

1 Answer 1


@prasad - have you verified your log files ( exception, support_report, access.log, php.access.log file ) ? I assume, its trying to process some code which may be related to logged in user.

Generally 502 Bad Gateway error may comes due to the process timeout.

  • Hi dude. Actually it occurs only for guest users. For registered users it works well. Commented Feb 13, 2020 at 15:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.