← centrs docs

routeros/api-protocol

A reply on the native-API connection was not valid API framing, so centrs stopped reading it. Every command waiting on that connection fails. A command that was already sent may or may not have run.

Typical triggers

Pointing --via native-api at the wrong service usually fails differently. On CHR 7.25.1, the HTTP (www), api-ssl and SSH ports each closed the connection, which centrs reports as transport/connection-closed.

Fix

If this looks wrong

If the port is the router's api service and the error repeats, it is a centrs decoder bug. Open an issue with the command, the --json envelope, the RouterOS version and centrs --version. Remove passwords (--password, --cdb-password) and other secrets from both first.