raise exception if serverurl is none