woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.3k stars 371 forks source link

Failed to load branches on public repo #4330

Closed zc-devs closed 1 week ago

zc-devs commented 2 weeks ago

Component

server, web-ui

Describe the bug

Trying to open Branches tab on public repo, I get infinite loading spinner and error: An unknown error occured.

Steps to reproduce

  1. Install next Woodpecker and Gitea
  2. Under anonymous user open the repo's branches
  3. Get An unknown error occured, HTTP 500 and infinite spinner Screenshot 1
  4. See panic in the server.log

Expected behavior

  1. Branches list loads just fine
  2. Or there is no Branches tab at all

System Info

Woodpecker `next-f87e80381b5`, Gitea `1.22.3`, Potgres 16

Additional context

4244

Now, error is different and it doesn't matter if I logged in or out. Also tested when I was logged in - in this browser tab branches load well. But at the same time if I open the same page under anonymous user in incognito/private browser I get error.

Validations