502 after entering correct 2fa on GitLab.com

As the title suggests we are getting 502 error during the sign-in process at the time of entering 2fa.

After trying multiple times it works.

Sentry: https://log.gitlap.com/goto/e652e2c44bf7da19e75c09d5c8faf7cc

cc// @stanhu

Edited by Arihant