Why is Godot raising this error when sending RPC calls?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MmTtDeveloper

Whenever I try to make RPC calls, this error is raised:

ERROR: RPC 'sync_property' is not allowed on node /root/map1/Player2 from: 444705115. Mode is 0, master is 444705115.

Why? It causes my program to not work properly and I have no clue why.

As far as I can tell this error is also raised if either the function does not exits (e.g. typo) or the requested function is not inside the same script as the rpc call. Hope this solved your issue

CoreTaxxe | 2020-05-05 15:59

:bust_in_silhouette: Reply From: TheWhiteLlama

It seems you’re trying to call the rpc without the permission to do so.
You can restrict rpc permissions with master / remotesync / remote / puppet keywords.

So currently you’re probably calling rpc from a client on a function marked with master.

Actually, the function is marked with remote.

MmTtDeveloper | 2020-03-09 12:34

Okay, I just tried using all of those keywords in front of the function and the same error is raised every time.

MmTtDeveloper | 2020-03-09 12:49

I just came across this problem myself. The issue was a typo in the RPC call to the function. I called the function the wrong name.

blurrred | 2021-03-13 21:24