eimzo-ts

Troubleshooting E-IMZO errors

Check error.code first, then error.reason and error.status (raw data from E-IMZO) or error.httpStatus (your backend).

CodeCauseFix
NOT_INSTALLEDE-IMZO is not running or not installed; the WebSocket to 127.0.0.1 closed.Start E-IMZO or install it from e-imzo.uz.
API_KEY_REJECTEDNo valid API key for the page's domain.DEV_API_KEYS on localhost; Developer mode in the E-IMZO tray for test domains; an issued key for each production domain.
OUTDATED_VERSIONE-IMZO is older than minVersion (4.86 by default).Update E-IMZO.
WRONG_PASSWORDWrong password. reason "Password is not ASCII" means a non-Latin keyboard layout.Let the user retry. E-IMZO has already shown its own message.
CANCELLEDThe user pressed Cancel in the password window.Reset the UI; do not show an error.
KEY_NOT_FOUNDE-IMZO forgot the key: restart, 24 hours, or the key was unloaded.With autoReloadKey (default) sign() retries once. Otherwise call loadKey().
KEY_NOT_LOADEDsign() before loadKey().Fix the calling code.
FILE_TOO_LARGEFile is larger than maxSize (10 MB by default).Raise maxSize or reject the file.
BACKEND_NOT_CONFIGUREDlogin() without getChallenge/login, or signDocument() without timestamp.Configure backend.
BACKEND_ERRORYour backend returned non-2xx or a non-JSON body, the request failed, or a challenge/timestamp response had status other than 1 or no value.Check httpStatus and params.detail.
TIMEOUTtimeoutMs is set and there was no answer in time.Raise or remove timeoutMs.
NOT_IN_BROWSERA method was called on the server (SSR, no window).Call it only from client-only code; in a Node script pass WebSocketImpl.
WEBSOCKET_UNSUPPORTEDThe browser has no WebSocket.Update the browser.
EIMZO_ERRORAny other E-IMZO error.Read reason.

Other symptoms

e-imzo-server /backend/auth statuses

statusMeaning
1OK
-1Certificate status could not be checked (often the VPN to the certification center is down). Do not log in; retry later.
-5Signing time outside the allowed window: check the computer clock.
-10Invalid signature.
-11, -12Certificate invalid (at signing time).
-20Challenge not found or expired (120 seconds).
-24, -25Certificate policy or CA not allowed.