-
-
Notifications
You must be signed in to change notification settings - Fork 456
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Component
server, web-ui
Describe the bug
When Pull requests
are disabled in Gitea
and I try to view pull requests in Woodpecker, I get HTTP 500
System Info
Woodpecker next-619858e0
Gitea 1.21.3
Additional context
Server log
{"level":"trace","time":"2023-12-21T23:39:41Z","caller":"/woodpecker/server/router/router.go:43","message":"[GET] /api/repos/1/pull_requests?page=1"}
{"level":"debug","time":"2023-12-21T23:39:41Z","caller":"/woodpecker/server/router/middleware/session/repo.go:150","message":"usr granted &{UserID:2 RepoID:1 Repo:<nil> Pull:true Push:true Admin:true Synced:1703200897 Created:1703200897 Updated:1703200897} permission to usr/wp-test"}
{"level":"error","error":"Error #01: The target couldn't be found.\n","ip":"2001:cafe:42::1","latency":16.134455,"method":"GET","path":"/api/repos/1/pull_requests","status":500,"time":"2023-12-21T23:39:41Z","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0","time":"2023-12-21T23:39:41Z","caller":"/woodpecker/server/router/middleware/logger.go:57"}
{"level":"trace","time":"2023-12-21T23:39:42Z","caller":"/woodpecker/server/cron/cron.go:48","message":"Cron: fetch next crons"}
Gitea log
2023/12/21 23:39:41 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/version for [2001:cafe:42::2d]:34692, 200 OK in 3.7ms @ misc/version.go:15(misc.Version)
2023/12/21 23:39:41 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/repos/usr/wp-test/pulls?limit=50&page=1&state=open for [2001:cafe:42::2d]:34692, 404 Not Found in 5.8ms @ v1/api.go:617(v1.mustAllowPulls)
Validations
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Checked that the bug isn't fixed in the
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use] - Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working