Add error handling for JSON-RPC method extract failure