The issue is not related to the robot.txt file generation.

It looks like you have changed the physical URI from Preferences->SEO & URLs tab https://prnt.sc/mwd5tj. And you are using the wrong URL to access the site.