input/invalid-path
A path centrs cannot send as given: an api endpoint
whose row id does not fit the method, an endpoint with no menu path, or
a file path SFTP cannot quote. The rejected path was not sent. A
transfer may already have queried another path, such as the
source of a copy.
Emitted by
api(code).transfer --via sftp(code).
Context
method,path,id: theapirequest, whenapiraised it.path: the file path, when SFTP raised it.
Typical triggers
api -X PATCHor-X DELETEon a menu with no row id:ip/addressinstead ofip/address/*1(code). These change one row, so they need its id.api -X PUTor-X POSTwith a row id:ip/address/*1. These do not address a row; pass.idas a field,-f .id=*1, when the command takes one (code).- An endpoint with no menu segment, such as
/(code). - A file name with a double quote or a newline over SFTP. centrs's SFTP client cannot quote them (code); whether RouterOS allows such a name has not been checked (unverified).
Fix
Follow remediation. Find row ids with a GET of the menu:
centrs api <router> ip/address. For an SFTP path, use
a name without double quotes or newlines.