rpc-websockets icon indicating copy to clipboard operation
rpc-websockets copied to clipboard

Why do errors thrown generate a -32601?

Open 439bananas opened this issue 5 months ago • 0 comments

I wonder, in the server, why is it that errors thrown in a command handler function cause that command to return to the client an error of method not found (-32601)? I understand if the server refuses to register it, but surely it should instead throw an error "internal error" (-32603) instead? As a developer, -32603 would make more sense in understanding the error that I am experiencing over -32601, and it would also mean that I end up taking fewer shots every time I try something to resolve this error, it doesn't work out and I end up going down the wrong rabbit hole.

439bananas avatar May 25 '25 16:05 439bananas