uri parse and encoded url for error message