Lesstep
Forgejo · Gitea · Codeberg · search API · Checked October 25, 2026

Forgejo and Gitea: the search for pull requests answered 400 "user does not exist"

Pull requests across repositories come from GET /api/v1/repos/issues/search?type=pulls: with owner= for the repositories of one user or organization, and with review_requested=true, reviewed=true or created=true for the ones that concern you. When the server will not run the search, it answers 400 or 422 with the reason in message. The answers below are what Codeberg (Forgejo) and gitea.com said on October 25, 2026, with what the source of both Forgejo and Gitea does behind them.

HTTP/1.1 400 Bad Request

{"message":"user does not exist [uid: 0, name: old-name]","url":"https://codeberg.org/api/swagger"}

400 and 422: what the server says, and why

200, but the list is not what you asked for

What to do

Forgejo and Gitea pull requests in IntelliJ IDEA

Pull Request Inbox for Forgejo and Gitea, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, uses the server's search for the scopes "Their owner" and "Everywhere": with owner= for the owner of each open repository, and with review_requested, reviewed and created for the lists "Waiting for my review", "I am a reviewer" and "Created by me". Without a token it lists all open pull requests, with the filters by you turned off (the server would ignore them), and for "Everywhere" it asks for a token instead of searching. When the server refuses a search, it shows the server's words. From version 1.0.19, for "Their owner" after the owner was renamed, it asks the server where the repository is now and searches under the owner's new name; when the server knows no such owner, it says so. Each list holds up to 200 pull requests, most recently updated first. Reading is free; approving, commenting and merging are Pro (US$1.50 a month, with a 30-day trial).

Forgejo, Gitea and Codeberg are names of their respective owners; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by the Forgejo project, Codeberg e.V., the Gitea project or JetBrains.

More: 404 "The target couldn't be found." and "not found" · 401 "token is required" and unknown tokens · "token does not have at least one of required scope(s)" · Forgejo and Gitea merge refused (405, 409) · Forgejo and Gitea merge when checks succeed refused (405, 409, 500) · Forgejo and Gitea review refused (422) · Forgejo and Gitea branch update refused (403, 409, 422) · Forgejo and Gitea pull request not created (409, 422, 403) · Forgejo and Gitea comment refused (403, 422, 400) · Forgejo and Gitea pull request files (pages of 50, changed_files) · Forgejo and Gitea pull request plugins for IntelliJ IDEA, compared · 日本語