Make the base uri before trying to use it