pass the error callback to send_request