throw error for invalid URL