RPC problems with the same function

Godot Version

4.4.rc1

Question

I have to godot projects with the same version. in each of them I have an “Authenticate” node, in one of them it is a singleton and in the other one it is the only scene (apart from some other singleton). One is the server and the other is the client with the ENetMultiplayerPeer class.

The thing is that I try to call from the client to a method of the server but it complains constantly that the function does not exist in both projects, when they do exist…

I have tried everything by configuring the rpc in all possible ways but it always gives error…

Can you help me?

Server configuration

Server function

Client configuration

Client function call

Client function
image

Server errors
image

Client error
image

Remote state at the error moment (server)

Remote state at the error moment (client)

Thanks!!

I just found the solution, in case it helps anyone…

The problem was that there were functions labeled with rpc on the server that were not on the client and vice versa… Even if the one in the example was in both, this also causes the error.

Thanks and best regards!