504 error when migration remote repo with "mirror" option, later it works?

Does somebody know anything about that prioblem? I opened a issue on githabe regarding to it: https://github.com/go-gitea/gitea/issues/8250

Best regards,
Jan