Symptom. The submission fails with LHDN login error: 502 – Bad Gateway.
Cause. The MyInvois service did not answer at that moment. Nothing on the document is wrong.
Fix. Wait a few minutes, open the document and click Re-submit. If it keeps failing for an hour, check the MyInvois status page or LHDN announcements before changing anything in AutoCount.
Written by Chantch from the vendor documentation. Source: AutoCount wiki