def send_request(self, method_name, is_notification, params):
        """Issue the HTTP request to the server and return the method result (if not a notification)"""
        request_body = self.serialize(method_name, params, is_notification)
        try:
            response = self.request(data=request_body, timeout=30)
        except requests.RequestException as requests_exception:
            raise TransportError(method_name % 'Error calling method %r', requests_exception)

        if response.status_code != requests.codes.ok:
            raise TransportError(response.status_code)

        if not is_notification:
            try:
                parsed = response.json()
            except ValueError as value_error:
                raise TransportError('Cannot deserialize response body', value_error)

            return self.parse_result(parsed)
dataset/ETHPy150Open UniversalDevicesInc/Polyglot/polyglot/node_servers/kodi/jsonrpc_requests/jsonrpc.py/Server.send_request/swapped operands of `%`