Errors

This document describes error codes.


Error Object

JSON-RPC error object.

{
    "error": {
        "code": -32500,
        "data": "user.login.badpassword",
        "message": "Bad password"
    },
    "id": "_ID_"
}
Filed Description
code Error group code
data Error string code
message Error string data

General Error Codes

General error codes are also used as groups of error codes.

Code Name Note(s)
-32300 TRANSPORT_ERROR looks like unused
-32400 SYSTEM_ERROR looks like unused
-32500 APPLICATION_ERROR
-32600 INVALID_REQUEST
-32601 METHOD_NOT_FOUND
-32602 INVALID_PARAMS
-32603 INTERNAL_ERROR
-32700 PARSE_ERROR looks like unused

TRANSPORT_ERROR Group

This group is defined but unused.


SYSTEM_ERROR Group

This group is defined but unused.


APPLICATION_ERROR Group

Internal error code Description(error message) Error code
USER_DOESNT_HAVE_PERMISSION User does not have permission user.permission.doesnothave
CLOSED_FOR_ALL Closed for all user.permission.doesnothave.all
DEVICES_LOCKED Devices is locked user.permission.doesnothave.locked
CANT_EDIT_USER Failed to edit user user.permission.doesnothave.edit
CANT_GET_EZLOS_FOR_THIS_USER Failed to get ezlos for user user.permission.doesnothave.ezlo
CANT_GET_TOKEN_FOR_THIS_USER Failed to get token for user user.permission.doesnothave.token
UNKNOWN_PERMISSION Unknown permission user.permission.unknown
BAD_PASSWORD Bad password user.login.badpassword
USER_HAS_LOGGED User has logged user.login.alreadylogged
WRONG_CURRENT_PASSWORD Wrong current password user.edit.badpassword
CANT_DELETE_USER Failed to delete user user.edit.forbidden.delete
CANT_BLOCK_USER Failed to block user user.edit.forbidden.block
CANT_EDIT_EMAIL Failed to edit email user.edit.forbidden.email
USER_EXISTS User exists user.create.alreadyregistered
OWNER_CANT_BE_UNBOUND Owner Failed to be unbound user.ezlo.forbidden.unshare
EMAIL_IS_NOT_CONFIRMED Email is not confirmed nma.user.notconfirmed.email
USER_NOT_FOUND User not found nma.user.notfound
KEY_NOT_FOUND Key not found nma.user.notfound.key
EMAIL_NOT_EXISTS Email does not exist nma.user.notfound.email
CANT_GET_HASH Failed to get hash nma.user.notfound.hash
USER_BLOCKED User blocked nma.user.blocked
USER_DELETED User deleted nma.user.deleted
USER_DISABLED User disabled nma.user.disabled
USER_NOT_LOGGED User not logged nma.user.notlogged
EZLO_AUTH_ERROR Bad login or password nma.user.badloginorpassword
DB_ERROR DB internal error nma.db.error
TOKEN_GENERATE_FAIL Cannot generate token nma.token.failed.generate
NO_TOKEN_FOUND No token found nma.token.notfound
TOKEN_HAS_NO_USER Token has no user nma.token.hasno.user
TOKEN_HAS_NO_SERIAL Token has no serial nma.token.hasno.serial
TOKEN_USED Token used nma.token.used
TOKEN_EXPIRED Token expired nma.token.expired
IMAGE_TOO_LARGE Image too large nma.image.toolarge
IMAGE_NOT_FOUND Image not found nma.image.notfound
EZLO_NOT_REGISTERED Hub not registered nma.ezlo.notregistered
EZLO_NOT_FOUND Hub not found nma.ezlo.notfound
EZLO_NOT_CONNECTED Hub not connected nma.ezlo.notconnected
EZLO_NOT_LINKED Hub not linked nma.ezlo.notlinked
CANT_SEND_TO_EZLO Failed to send to Hub nma.ezlo.unavailable
EZLO_DELETED Hub deleted nma.ezlo.deleted
EZLO_BECAME_ONLINE Hub became online nma.ezlo.becameonline
BAD_BACKEND_PASS Bad backend pass nma.register.badpassword
EZLO_ALREADY_REGISTERED_ON_NMA Hub already registered on NMA nma.register.alreadyregistered
NO_BACKUPS Hub Replica is not found nma.backup.notfound
ADAPTER_UNSUPPORTED Unsupported adapter type nma.adapter.unsupported
ADAPTER_UNAVAILABLE Unavailable adapter nma.adapter.unavailable
EZLO_ALREADY_REGISTERED Hub already registered ezlo.register.alreadyregistered
CANT_RUN_SCRIPT_AFTER_RESTORE_BACKUP Failed to run script after restore backup ezlo.restore.internal.startscript
STOP_SCRIPT_RUN_ERROR Stop script run error ezlo.restore.internal.stopscript
WRONG_BACKUP_VERSION Wrong backup version ezlo.restore.unknown.version
BAD_BACKUP_DATA Bad backup data ezlo.restore.bad.data
NO_BACKUP_DATA_PRESENT Backup was never performed ezlo.no.backup.data.present
UNCOMPRESS_ERROR Uncompress Error ezlo.restore.bad.archive
UNPACKED_SIZE_ERROR Unpacked size Error ezlo.restore.bad.size
MD5_ERROR MD5 Error ezlo.restore.bad.md5
UNKNOWN_DATA_TYPE Unknown data type ezlo.restore.bad.type
NO_ENVM_SECTION_IN_BACKUP No envm section in backup ezlo.restore.notfound.envm
NO_ZDDX_SECTION_IN_BACKUP No zddx section in backup ezlo.restore.notfound.zddx
NO_ZDDXSIZE_SECTION_IN_BACKUP No zddxSize section in backup ezlo.restore.notfound.size
NO_HOMEID_SECTION_IN_BACKUP No homeId section in backup ezlo.restore.notfound.homeId
ENVM_UNCOMPRESS_ERROR ENVM Uncompress Error ezlo.restore.bad.envm
ZDDX_UNCOMPRESS_ERROR ZDDX Uncompress Error ezlo.restore.bad.zddx
STICK_WRITE_ERROR STICK write Error ezlo.restore.unavailable.stick
CANT_DOWNLOAD_FIRMWARE Failed to download firmware! Network problems! hub.firmware.update.unavailable.firmware
CANT_DOWNLOAD_DATA Failed to download data! Network problems! hub.firmware.update.unavailable.data
CANT_VERIFIED Failed to verified! hub.firmware.update.bad.firmware
CANT_DECRYPT Failed to decrypt! hub.firmware.update.bad.key
CANT_UNPACK Failed to unpack! hub.firmware.update.bad.archive
UPDATE_ZDDX_ERROR Update ZDDX error hub.firmware.update.internal.zddx
DEPENDENCIES_UPDATE_ERROR Dependencies update error hub.firmware.update.internal.dependencies
UPDATE_OPERATIONS_ERROR Update operations error hub.firmware.update.internal.operation
UNEXPECTED_ERROR Unexpected error hub.firmware.update.unexpected
SEND_FILE_ERROR Send file Error ezlo.logs.internal.sendfile
ERROR_OPENING_FILE Error opening file ezlo.logs.notfound.file
SET_LOGLEVEL_ERROR Set logLevel error ezlo.logs.internal.setlevel
SCRIPT_OPEN_ERROR Script open error ezlo.wifi.notfound.script
SCRIPT_ERROR Script error ezlo.wifi.internal.script
REMOVE_NET_ERROR Remove net Error! ezlo.wifi.internal.remove
ADD_NET_ERROR Add net Error! ezlo.wifi.internal.add
CHECK_ERROR Check Error! ezlo.wifi.internal.check
RESET_WIFI_ERROR Reset Wi-Fi Error! ezlo.wifi.internal.reset
NOT_SENT_TO_GATEWAY Not sent command to gateway ezlo.gateway.send.error
GATEWAY_BUSY Gateway busy ezlo.adapter.busy.gateway
ZWAVE_BUSY Zwave busy ezlo.adapter.busy.zwave
NO_DEVICE_FOUND No device found! ezlo.device.notfound
NO_SUBDEVICE_FOUND No subdevice found ezlo.device.notfound.subdevice
SUCH_NAME_ALREADY_EXISTS Such name already exists! ezlo.device.notunique.name
REMOTE_PORT_FORWARDING_FAILED Remote port forwarding failed: unknown error ezlo.sshtunel.internal
STATIC_SERVER_UNAVAILABLE Static server unavailable static.token.unavailable
STATIC_SERVER_BAD_JSON Static server bad json static.token.bad.json
STATIC_SERVER_BAD_DATA Static server bad data static.token.bad.data
NMA_TEMPLATE_EXISTS Template already exists nma.template.exists
MEDIA_STREAM_SUBSYSTEM_FAILURE Media stream subsystem failed to execute requested operation mediastream.failure.error
MEDIA_STREAM_INVALID_PAGE_ID Invalid or not existing roomId parameter value specified mediastream.invalid.page.id
FFMPEG_FAILURE_ADD Failed to add video stream (at least some of streams were not added) ffmpeg.failure.add
FFMPEG_FAILURE_REMOVE Failed to remove video stream (at least some of streams were not removed) ffmpeg.failure.remove
FFMPEG_FAILURE_CFG_LOAD Failed to load configuration file for video streaming ffmpeg.failure.cfg.load
FFMPEG_FAILURE_CFG_SAVE Failed to save configuration file for video streaming ffmpeg.failure.cfg.save
FFMPEG_FAILURE_STREAM_REGISTER Failed to register video stream (at least some of streams were not registered) ffmpeg.failure.stream.register
FFMPEG_FAILURE_STREAM_RUN Failed to start video stream process (at least some of streams were not starred) ffmpeg.failure.stream.run
FFMPEG_FAILURE_STREAM_STOP Failed to stop video stream process (at least some of streams were not stopped) ffmpeg.failure.stream.stop
FFMPEG_FAILURE_STREAM_RESTART Failed to restart video stream process (at least some of streams were not restarted) ffmpeg.failure.stream.restart
FFMPEG_FAILURE_STREAM_STATUS At least some of streams do not work as they should ffmpeg.failure.stream.status
CAMERA_SUBSYSTEM_INTERNAL_ERROR Internal error of camera support subsystem camera.system.internal.error
CAMERA_ID_OR_URL_MISSING neither cameraId nor cameraUrl specified in call parameters camera.id.or.url.missing
CAMERA_BAD_CAMERA_URL Malformed camera URL camera.bad.camera.url
CAMERA_BAD_FTP_URL Malformed FTP URL camera.bad.ftp.url
CAMERA_BAD_NOT_EXISTING_ID Bad or not existing camera ID camera.bad.id
CAMERA_ID_MISSING Missing cameraId parameter camera.missing.id
CAMERA_SENDER_MISSING Missing sender parameter camera.missing.sender
SHUTDOWN_MODE_ENTERED UId system is entered shutdown mode ezlo.uid.shutdown.mode
RPC_CALL_QUEUE_OVERFLOW RPC call queue reached limit ezlo.rpc.call.queue.overflow
SPREAD_BUS_IS_NOT_OPERATABLE Spread bus was not initialized correctly ezlo.spread.bus.was.not.initialized
SPREAD_BUS_ERROR Spread bus internal error ezlo.spread.bus.internal.error
OBJECT_NOT_FOUND Object not found generic.object.not.found
CONFIRMATION_EMAIL_FAILURE Failed to send confirmation email nma.confirmation.email.failure
EZLO_HUB_SERIAL_NUMBER_IS_INVALID eZLO hub serial number is invalid nma.invalid.ezlo.serial
CANT_PLACE_SUBDEVICE Placing subdevice is forbidden ezlo.device.forbidden.place.subdevice
ROOM_NOT_FOUND Room not found nma.room.notfound
ROOM_ALREADY_EXIST Room already exist hub.room.alreadyexist
SCENE_IS_OVERLAPPING Scene is overlapping with other scene ezlo.scenes.overlapping
SCENE_WRONG_WHEN_BLOCK Scene is ill formed. Can't parse when block ezlo.scenes.block.when.wrong
SCENE_WRONG_THEN_BLOCK Scene is ill formed. Can't parse then block ezlo.scenes.block.then.wrong
SCENE_IS_USED_NOT_SUPPORTED_METHOD Scene is failed. There is no such method ezlo.scenes.method.unknown
SCENE_NOT_SUPPORTED_FEATURE_IS_USED Can't create scene with unsupported feature ezlo.scenes.feature.not_supported
SCENE_IS_NOT_DELETED Can't find scene for deleting scenes.delete.error
SCENE_LOAD_FROM_JSON_IS_FAILED Load scene from Json object is failed scenes.add.error
SCENE_DOES_NOT_EXIST The scene with this id does not exist ezlo.scenes.not.exist

INVALID_REQUEST Group

Internal error code Description(error message) Error code
BAD_REQUEST_HASH_NOT_EXISTS Bad request, hash does not exist rpc.params.notfound.hash
BAD_PARAMS Bad params rpc.params.notfound
UNEXPECTED_REQUEST Unexpected request rpc.method.unexpected

METHOD_NOT_FOUND Group

Internal error code Description(error message) Error code
UNKNOWN_METHOD Unknown method rpc.method.notfound

INVALID_PARAMS Group

Internal error code Description(error message) Error code
SERIAL_TOO_SHORT Serial too short rpc.params.tooshort.serial
PASSWORD_IS_TOO_SHORT Password is too short rpc.params.tooshort.password
KEY_IS_EMPTY Key is empty rpc.params.empty.key
TOKEN_EMPTY Token empty rpc.params.empty.token
HASH_IS_EMPTY Hash is empty rpc.params.empty.hash
ID_IS_EMPTY id is empty rpc.params.empty.id
PARENT_ID_IS_EMPTY parent_id is empty rpc.params.empty.parent_id
MESSAGE_HAS_EMPTY_METHOD Message has empty method rpc.params.empty.method
WRONG_UNIT_AVAILABLE_UNITS Wrong unit, available units: F or C rpc.params.unknown.temperatureUnits
UNKNOWN_CONDITION_FILTER Unknown condition filter rpc.params.unknown.condition_filter
WRONG_PARAMS Wrong params rpc.params.invalid
EMPTY_FIELD Empty field rpc.params.empty
INVALID_VALUE_RANGE Value is not in valid range rpc.params.range.invalid
INVALID_VALUE_TYPE Value is not valid type rpc.params.type.invalid

INTERNAL_ERROR Group

Internal error code Description(error message) Error code
BAD_USER_DATA Bad user data nma.user.baddata
TOKEN_CREATION_ERROR Token creation error nma.token.internal
KEY_GENERATION_ERROR Key generation error nma.key.internal
COMPRESS_ERROR Compress error ezlo.backup.internal.compress
DATA_SAVE_ERROR Data save error ezlo.securechip.internal
MAIL_SENDING_ERROR Mail sedning error mail.sending.error
INTERNAL_OPERATION_ERROR Internal operation error internal.operation.error
INTERNAL_UNHANDLED_EXCEPTION_ERROR Internal unhandled error internal.unhandled.error
LENGTHY_ASYNC_OPERATION_ERROR Lengthy async operation error lengthy.async.operation.error
UNCANCELABLE_OPERATION_IS_IN_PROGRESS Cannot cancel important operation cannot.cancel.important.operation

PARSE_ERROR Group

This group is defined but unused.