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.
| Error | Common trigger | What to check |
|---|---|---|
| INVALID_REQUEST | Invalid request structure, protocol, or unknown fields | Original protocol contract |
| INVALID_PARAMS | Nonempty params for a current method or unsupported CLI parameters | Current implementation and command arguments |
| METHOD_NOT_FOUND | Method is not implemented | Method registry; higher privileges do not fix it |
| DEVICE_REQUIRED | System method lacks a transport | adb/device configuration |
| PERMISSION_DENIED | UID/filesystem/SELinux denial | Actual identity and capability prerequisites |
| INVENTORY_UNAVAILABLE | Missing specification file or invalid data | Completeness of the corresponding source deployment |
| CAPABILITY_NOT_DECLARED | Extension calls an undeclared method | Registry capability declaration |
Reproducible rejections
Requires the system source: The commands below run from the
taku-osrepository 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.infoThe 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
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