Exception thrown when redirect uri is missing