ZodError: Schema error (ForgejoHttp.requestJson) with Renovate 43.227.1 #44059
-
How are you running Renovate?Self-hosted Renovate CLI Which platform you running Renovate on?Forgejo Which version of Renovate are you using?43.227.1 Please tell us more about your question or problemUsing a self-hosted Forgejo instance, a regression is observed after upgrading to Renovate 43.227.1. Previous Renovate versions worked without issue, but with this latest version Renovate fails to run with the following error logged, for every org/repo configured: Same as reported at #43900 (comment), we use Forgejo organizations to group repos/projects, i.e. these are not Forgejo user accounts, and do not have email addresses. This appears to be a regression related to #43900 and blocks usage of Renovate with Forgejo repos. Logs (if relevant)No response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
|
@secustor another one 👀 |
Beta Was this translation helpful? Give feedback.
-
|
I also just hit this issue. The forgejo API returns an empty string as email for owner if it is not set. Example API response for GET /api/v1/repos/search Full Reponse{
"ok": true,
"data": [
{
"id": 1,
"owner": {
"id": 2,
"login": "homelab",
"login_name": "",
"source_id": 0,
"full_name": "",
"email": "",
"avatar_url": "http://forgejo.local/avatars/d113849900dd51858fb15d5652a050b3",
"html_url": "http://forgejo.local/homelab",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2026-05-17T17:02:34Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"pronouns": "",
"website": "",
"description": "",
"visibility": "private",
"followers_count": 0,
"following_count": 0,
"starred_repos_count": 0,
"username": "homelab"
},
"name": "flux-ops",
"full_name": "homelab/flux-ops",
"description": "",
"empty": false,
"private": true,
"fork": false,
"template": false,
"parent": null,
"mirror": false,
"size": 639,
"language": "",
"languages_url": "http://forgejo.local/api/v1/repos/homelab/flux-ops/languages",
"html_url": "http://forgejo.local/homelab/flux-ops",
"url": "http://forgejo.local/api/v1/repos/homelab/flux-ops",
"link": "",
"ssh_url": "ssh://git@forgejo.local:2222/homelab/flux-ops.git",
"clone_url": "http://forgejo.local/homelab/flux-ops.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 0,
"watchers_count": 2,
"open_issues_count": 1,
"open_pr_counter": 1,
"release_counter": 0,
"default_branch": "main",
"archived": false,
"created_at": "2026-05-17T17:03:08Z",
"updated_at": "2026-06-17T13:44:36Z",
"archived_at": "1970-01-01T00:00:00Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": true,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_wiki_contents": false,
"wiki_branch": "main",
"wiki_ssh_url": "ssh://git@forgejo.local:2222/homelab/flux-ops.wiki.git",
"wiki_clone_url": "http://forgejo.local/homelab/flux-ops.wiki.git",
"globally_editable_wiki": false,
"has_pull_requests": true,
"has_projects": true,
"has_releases": true,
"has_packages": true,
"has_actions": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"allow_fast_forward_only_merge": true,
"allow_rebase_update": true,
"default_delete_branch_after_merge": false,
"default_merge_style": "merge",
"default_allow_maintainer_edit": false,
"default_update_style": "merge",
"avatar_url": "",
"internal": false,
"mirror_interval": "",
"object_format_name": "sha1",
"mirror_updated": "0001-01-01T00:00:00Z",
"repo_transfer": null,
"topics": []
}
]
}E-Mail is definied as optional in schema.ts, but empty string does not match against it. renovate/lib/modules/platform/forgejo/schema.ts Lines 39 to 47 in e921d27 |
Beta Was this translation helpful? Give feedback.
-
|
+1, deploying 43.227 broke our entire Renovate setup. Org's not having an e-mail address associated seems common and supported behavior from the Forgejo side of things. |
Beta Was this translation helpful? Give feedback.
-
|
Should be fixed in |
Beta Was this translation helpful? Give feedback.
-
|
Much appreciated -- thank you @secustor! |
Beta Was this translation helpful? Give feedback.
Should be fixed in
43.228.1