Handle invalid uri error