Unable to kickstart Rocky Linux 8 due to .treeinfo

I am on pulp3 and I have the same issue for CentOS8 and this issue started after I upgraded katello 4.0.x → 4.1.3. So this is most likely a new bug. For reference this is my thread: Foreman failed to download metadata for repo 'AppStream': cannot download repomd.xml