Skip to content

User RPC Error-No matching subscriber #1825

Description

@ankit7gup

Hi Michal,

We are executing a custom RPC viea Netopeer2-cli and facing below issue.

While subscribing the RPC with rpc_subscribe_example and sending the RPC request via the rpc_send_example the RPC is correctly recognized and received by the rpc_subscribe_example application. But on executing the same user-rpc via the CLIgetting the error message : "There are no matching subscribers for RPC/action "/examples:oper"". Even though the subscriber application keeps running. I am currently using version : netopeer2-cli 2.2.0. Please suggest. Thanks is advance!

rpc.xml:

hello-from-client

cli message:

user-rpc --content rpc.xml

ERROR

message:  There are no matching subscribers for RPC/action "/examples:oper".

examples.yang:

module examples {
    namespace "urn:examples";
    prefix e;
    container cont {
        leaf l {
            type string;
        }
    }

    container stats {
        config false;
        leaf counter {
            type uint64;
        }
        leaf counter2 {
            type uint64;
        }
    }
 
    rpc oper {
        input {
            leaf arg {
                type string;
            }
        }
        output {
            leaf ret {
                type int64;
            }
        }
    }
 
    notification notif {
        leaf val {
            type decimal64 {
                fraction-digits 2;
            }
        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugBug description.status:invalidIssue is not reproducible.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions