raise an error on non-matching urls