Skip to content
Taku Docs

Version 1.4.0 (current)

Errors and protocol boundaries

Inspect the error code and entry point before changing configuration, permissions, or implementation.

When the CLI returns ok: false or the SDK throws TakuError, read error.code and use the table below. See the call protocol for the complete response.

Current protocol

This table applies to taku/0.1 calls. An application HTTP API or a direct Android command may use a different error format; consult its own documentation.

ErrorCommon triggerWhat to check
INVALID_REQUESTInvalid request structure, protocol, or unknown fieldsOriginal protocol contract
INVALID_PARAMSNonempty params for a current method or unsupported CLI parametersCurrent implementation and command arguments
METHOD_NOT_FOUNDMethod is not implementedMethod registry; higher privileges do not fix it
DEVICE_REQUIREDSystem method lacks a transportadb/device configuration
PERMISSION_DENIEDUID/filesystem/SELinux denialActual identity and capability prerequisites
INVENTORY_UNAVAILABLEMissing specification file or invalid dataCompleteness of the corresponding source deployment
CAPABILITY_NOT_DECLAREDExtension calls an undeclared methodRegistry capability declaration

Reproducible rejections

Requires the system source: The commands below run from the taku-os repository root. Clone taku-os first.

Run from the system repository root on your computer. env -u removes existing device environment variables only for that command, ensuring that the second example has no selected connection:

env -u TAKU_OS_TRANSPORT -u TAKU_OS_SERIAL node sdk/cli/taku.mjs call scenario.unknown
env -u TAKU_OS_TRANSPORT -u TAKU_OS_SERIAL node sdk/cli/taku.mjs call system.info

The first command should reject an unknown method. The second should return DEVICE_REQUIRED without a transport. These checks verify code paths without writing to a physical phone.

What to observe: JSON error.code, message, retryable, and process exit. Errors must not contain authentication caches, raw internal logs, or other task bodies.

Failure boundaries: Fields, codes, and implementation details change with the source version. Research capabilities may use Android commands/public SDKs rather than the same facade. The application Node HTTP service has its own business errors and must not be presented as the same interface.

Next: Symptom troubleshooting or individual capability references.

Research preview · Current availability

Documentation retrieval

Search the published documentation for excerpts and citations. This uses full-text retrieval, not LLM-generated answers.

Every result links to the original article. Read research ideas separately from verified capabilities.

Help and troubleshooting →
Was this article helpful?
Report an issue or give feedback

Delivery to the maintenance queue does not mean it has been handled. Feedback is retained for 90 days.

Built with Fumadocs

On this page