--- title: 'DF0006: RPC Function Not Registered' description: 'RPC function "{name}" is not registered' --- ## Message > RPC function "`{name}`" is not registered ## Cause `RpcFunctionsHost.invokeLocal()` was called with a method name that has not been registered on this host. ## Fix Register the function with `ctx.rpc.register(defineRpcFunction({ name }))` before invoking it. ## Source - [`packages/devframe/src/node/host-functions.ts`](https://github.com/devframes/devframe/blob/main/packages/devframe/src/node/host-functions.ts): `RpcFunctionsHost.invokeLocal()` throws `DF0006` when the requested method has not been registered on this host.