Chantch SolutionsCHANTCHSOLUTIONSBusiness Technology Solutions

e-Invoice error: "LHDN login error: 502 – Bad Gateway"

A temporary LHDN connection problem; the document is fine.

Updated 2026-10-12 · e-invoicelhdn

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

Did this solve it?

If not, tell us what happened after you tried the steps - a short conversation is usually enough to find the real cause.