Mirrored repos created through REST API is not web UI browsable

Hello,
Normally creating a repo through the REST API (/api/v1/user/repos) we can browse the repository normally through the Gitea_URL/USER/REPONAME web interface. We can see the directories and files.

Creating a mirrored repository through the REST API (/api/v1/repos/migrate), we can retrieve files and directories through the REST API, but the repository is not browsable (HTTP 500 error) under Gitea_URL/USER/REPONAME. Is this a bug, or is there a setting in the repo configuration that needs to be adjusted?

Thanks

Here are our version information:
Site Title
Site cluster Gitea Instance
Gitea Version
1.11.0+dev-180-gd5b1e6bc5 built with GNU Make 4.2.1, go1.13.4 : bindata, sqlite, sqlite_unlock_notify
Configuration File Path
/data/gitea/conf/app.ini
Gitea Base URL
http://172.17.5.254:3000/
SSH Server Domain
172.17.5.254
Local Mode
Disable Router Log
Run As Username
git
Run Mode
Production
Git Version
2.22.0
Repository Root Path
/data/git/repositories
Static File Root Path
/app/gitea
Custom File Root Path
/data/gitea
Log Path
/data/gitea/log
Script Type
bash
Reverse Authentication User
X-WEBAUTH-USER
GITEA_CUSTOM
/data/gitea