[GH-ISSUE #102] Error message: Failed to mirror repository: HTTP 422: The URL contains credentials. #1924

Closed
opened 2026-05-03 02:46:12 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @fma965 on GitHub (Sep 23, 2025).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/102

Image
=== ITEM PROCESSING FAILED (MAX RETRIES EXCEEDED) ===
Item: unknown
Error type: Error
Error message: Failed to mirror repository: HTTP 422: The URL contains credentials.
Attempts made: 3
Stack trace: Error: Failed to mirror repository: HTTP 422: The URL contains credentials.
    at <anonymous> (/app/dist/server/chunks/gitea_DtRAIBGn.mjs:412:17)
    at processTicksAndRejections (native:7:39)
================================================
Retry progress: 100% (1/1)
=== BATCH ITEM PROCESSING ERROR ===
Batch index: 0
Item index in batch: 0
Global item index: 0
Error type: Error
Error message: Failed to mirror repository: HTTP 422: The URL contains credentials.
==================================
All repository retry tasks completed

I'm getting this for all private repo's no idea what it means, both for user and org

Public repos mirrored fine though

i have a classic token set with repo and admin:org

And full access token in forgejo

Image
Originally created by @fma965 on GitHub (Sep 23, 2025). Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/102 <img width="332" height="137" alt="Image" src="https://github.com/user-attachments/assets/a44b6517-54a3-486e-a729-8b95db1fbbe9" /> ``` === ITEM PROCESSING FAILED (MAX RETRIES EXCEEDED) === Item: unknown Error type: Error Error message: Failed to mirror repository: HTTP 422: The URL contains credentials. Attempts made: 3 Stack trace: Error: Failed to mirror repository: HTTP 422: The URL contains credentials. at <anonymous> (/app/dist/server/chunks/gitea_DtRAIBGn.mjs:412:17) at processTicksAndRejections (native:7:39) ================================================ Retry progress: 100% (1/1) === BATCH ITEM PROCESSING ERROR === Batch index: 0 Item index in batch: 0 Global item index: 0 Error type: Error Error message: Failed to mirror repository: HTTP 422: The URL contains credentials. ================================== All repository retry tasks completed ``` I'm getting this for all private repo's no idea what it means, both for user and org Public repos mirrored fine though i have a classic token set with repo and admin:org And full access token in forgejo <img width="467" height="178" alt="Image" src="https://github.com/user-attachments/assets/43e399d4-f15c-4c9c-9479-6fd5351a877c" />
Author
Owner

@arunavo4 commented on GitHub (Sep 26, 2025):

What is your forjego or Gitea version ??

<!-- gh-comment-id:3336588453 --> @arunavo4 commented on GitHub (Sep 26, 2025): What is your forjego or Gitea version ??
Author
Owner

@fma965 commented on GitHub (Sep 26, 2025):

What is your forjego or Gitea version ??

          repository: codeberg.org/forgejo/forgejo
          pullPolicy: IfNotPresent
          tag: 12.0.4-rootless@sha256:ee7f9392f5ea0b12466269a51116f83a923baea0ec86989d6feb5857f9591a33

May change, as i use renovate to update it, you can see live version here - https://github.com/fma965/f9-homelab/blob/main/kubernetes/apps/default/forgejo/app/helmrelease.yaml#L40

<!-- gh-comment-id:3337897696 --> @fma965 commented on GitHub (Sep 26, 2025): > What is your forjego or Gitea version ?? repository: codeberg.org/forgejo/forgejo pullPolicy: IfNotPresent tag: 12.0.4-rootless@sha256:ee7f9392f5ea0b12466269a51116f83a923baea0ec86989d6feb5857f9591a33 May change, as i use renovate to update it, you can see live version here - https://github.com/fma965/f9-homelab/blob/main/kubernetes/apps/default/forgejo/app/helmrelease.yaml#L40
Author
Owner

@antt1995 commented on GitHub (Sep 28, 2025):

Im getting the same error but with some Org Repos as well
Forgejo codeberg.org/forgejo/forgejo:12@sha256:dbb0f88677f0c65cd1b66fb83504225aa5a04c4bc4a5ffdf9fc9a3a6d5bb1c68
Forgejo Logs

2025-09-28T14:39:08.897095609Z 2025/09/28 14:39:08 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 46.6ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95)

2025-09-28T14:39:09.085184868Z 2025/09/28 14:39:09 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/user for **MY-IP**:0, 200 OK in 36.0ms @ user/user.go:131(user.GetAuthenticatedUser)

2025-09-28T14:39:09.197748556Z 2025/09/28 14:39:09 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/orgs/github-personal for **MY-IP**:0, 200 OK in 20.1ms @ org/org.go:290(org.Get)

2025-09-28T14:39:09.508900906Z 2025/09/28 14:39:09 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 31.6ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95)

2025-09-28T14:39:09.685367853Z 2025/09/28 14:39:09 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/v1/repos/migrate for **MY-IP**:0, 422 Unprocessable Entity in 29.8ms @ repo/migrate.go:38(repo.Migrate)

2025-09-28T14:39:12.029197834Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 38.4ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95)

2025-09-28T14:39:12.205873339Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/user for **MY-IP**:0, 200 OK in 32.3ms @ user/user.go:131(user.GetAuthenticatedUser)

2025-09-28T14:39:12.277375015Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/orgs/github-personal for **MY-IP**:0, 200 OK in 29.6ms @ org/org.go:290(org.Get)

2025-09-28T14:39:12.545446404Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 38.3ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95)

2025-09-28T14:39:12.657042239Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/v1/repos/migrate for **MY-IP**:0, 422 Unprocessable Entity in 34.9ms @ repo/migrate.go:38(repo.Migrate)

2025-09-28T14:39:16.959931681Z 2025/09/28 14:39:16 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 35.2ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95)

2025-09-28T14:39:17.140595151Z 2025/09/28 14:39:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/user for **MY-IP**:0, 200 OK in 44.8ms @ user/user.go:131(user.GetAuthenticatedUser)

2025-09-28T14:39:17.234028611Z 2025/09/28 14:39:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/orgs/github-personal for **MY-IP**:0, 200 OK in 42.7ms @ org/org.go:290(org.Get)

2025-09-28T14:39:17.498272983Z 2025/09/28 14:39:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 38.0ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95)

2025-09-28T14:39:17.627790728Z 2025/09/28 14:39:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/v1/repos/migrate for **MY-IP**:0, 422 Unprocessable Entity in 36.1ms @ repo/migrate.go:38(repo.Migrate)
```
<!-- gh-comment-id:3343037805 --> @antt1995 commented on GitHub (Sep 28, 2025): Im getting the same error but with some Org Repos as well Forgejo `codeberg.org/forgejo/forgejo:12@sha256:dbb0f88677f0c65cd1b66fb83504225aa5a04c4bc4a5ffdf9fc9a3a6d5bb1c68` Forgejo Logs ```` 2025-09-28T14:39:08.897095609Z 2025/09/28 14:39:08 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 46.6ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95) 2025-09-28T14:39:09.085184868Z 2025/09/28 14:39:09 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/user for **MY-IP**:0, 200 OK in 36.0ms @ user/user.go:131(user.GetAuthenticatedUser) 2025-09-28T14:39:09.197748556Z 2025/09/28 14:39:09 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/orgs/github-personal for **MY-IP**:0, 200 OK in 20.1ms @ org/org.go:290(org.Get) 2025-09-28T14:39:09.508900906Z 2025/09/28 14:39:09 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 31.6ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95) 2025-09-28T14:39:09.685367853Z 2025/09/28 14:39:09 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/v1/repos/migrate for **MY-IP**:0, 422 Unprocessable Entity in 29.8ms @ repo/migrate.go:38(repo.Migrate) 2025-09-28T14:39:12.029197834Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 38.4ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95) 2025-09-28T14:39:12.205873339Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/user for **MY-IP**:0, 200 OK in 32.3ms @ user/user.go:131(user.GetAuthenticatedUser) 2025-09-28T14:39:12.277375015Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/orgs/github-personal for **MY-IP**:0, 200 OK in 29.6ms @ org/org.go:290(org.Get) 2025-09-28T14:39:12.545446404Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 38.3ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95) 2025-09-28T14:39:12.657042239Z 2025/09/28 14:39:12 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/v1/repos/migrate for **MY-IP**:0, 422 Unprocessable Entity in 34.9ms @ repo/migrate.go:38(repo.Migrate) 2025-09-28T14:39:16.959931681Z 2025/09/28 14:39:16 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 35.2ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95) 2025-09-28T14:39:17.140595151Z 2025/09/28 14:39:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/user for **MY-IP**:0, 200 OK in 44.8ms @ user/user.go:131(user.GetAuthenticatedUser) 2025-09-28T14:39:17.234028611Z 2025/09/28 14:39:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/orgs/github-personal for **MY-IP**:0, 200 OK in 42.7ms @ org/org.go:290(org.Get) 2025-09-28T14:39:17.498272983Z 2025/09/28 14:39:17 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/github-personal/365 for **MY-IP**:0, 404 Not Found in 38.0ms @ v1/api.go:142(v1.Routes.func2.(*Route).Group.Routes.func2.8.repoAssignment.95) 2025-09-28T14:39:17.627790728Z 2025/09/28 14:39:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/v1/repos/migrate for **MY-IP**:0, 422 Unprocessable Entity in 36.1ms @ repo/migrate.go:38(repo.Migrate) ```
Author
Owner

@antt1995 commented on GitHub (Sep 28, 2025):

Logs from Gitea-Mirror

Image
<!-- gh-comment-id:3343610258 --> @antt1995 commented on GitHub (Sep 28, 2025): Logs from Gitea-Mirror <img width="2236" height="990" alt="Image" src="https://github.com/user-attachments/assets/e073b2ed-0e9e-4186-b42c-cd9a03e8858e" />
Author
Owner

@fma965 commented on GitHub (Sep 30, 2025):

"Im getting the same error but with some Org Repos as well"
@antt1995 i get it for org repos and personal repo's but only private ones. basically every private repo.

<!-- gh-comment-id:3352845034 --> @fma965 commented on GitHub (Sep 30, 2025): "Im getting the same error but with some Org Repos as well" @antt1995 i get it for org repos and personal repo's but only private ones. basically every private repo.
Author
Owner

@arunavo4 commented on GitHub (Sep 30, 2025):

@fma965 @antt1995 can you kindly test this PR there is an docker image that u can pull and check I dont have a forgejo setup right now as I am using gitea.

docker pull ghcr.io/raylabshq/gitea-mirror:pr-105
docker run -d -p 3000:3000 --name gitea-mirror-test ghcr.io/raylabshq/gitea-mirror:pr-105
<!-- gh-comment-id:3353230435 --> @arunavo4 commented on GitHub (Sep 30, 2025): @fma965 @antt1995 can you kindly test this PR there is an docker image that u can pull and check I dont have a forgejo setup right now as I am using gitea. ``` docker pull ghcr.io/raylabshq/gitea-mirror:pr-105 docker run -d -p 3000:3000 --name gitea-mirror-test ghcr.io/raylabshq/gitea-mirror:pr-105 ```
Author
Owner

@fma965 commented on GitHub (Sep 30, 2025):

@arunavo4 this works, thanks!

<!-- gh-comment-id:3353531464 --> @fma965 commented on GitHub (Sep 30, 2025): @arunavo4 this works, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#1924