If url was not valid, there should be an excpetion