throw an exception if the request object has not been set yet