Closed zc-devs closed 1 month ago
The activity tries to load the branches too and fails because the forge is not reachable.
Actually it's not the activity tab but the manual pipeline popup where you can select the branches. What do you suggest to do instead?
it's not the activity tab
So I wrote.
but the manual pipeline popup where you can select the branches
Seems, you are right. I thought, it was Branches tab. Like in Settings.
What do you suggest to do instead?
Run pipeline
button, then I do not need branches, right? If I'm on General settings tab, I do not need other tabs information. I've seen an issue/discussion about that recently, though.cannot load branches because forge is unavailable
.I thought, it was Branches tab.
Yes, sometimes all tabs are loaded at once, but not always. See #3827
That is that I meant. Thanks for linking.
I've just checked, seems, Run pipeline
make separate call to branches
.
Run pipeline
Hm weird I didn't check that much there but it was my assumption that the popup is the problem… But yes, it should only be loaded on opening
Also, there are (always?) two requests for branches: one with page=1
and second with page=2
.
For example, I open Branches tab. I see loading spinner and request with page=1
.
Right after branches are loaded, I see second request with page=2
in the browser console.
Two branches requests
As you can see I have only two branches, so second response is empty.
Ah yes, that's something on my refactoring list too… Should be easy though, I can try to take a look in a few minutes…
Component
server
Describe the bug
When forge is unavailable get
An unknown error occurred
on repository Activity tab. Woodpecker tries to load branches also and fails with500
.Steps to reproduce
Expected behavior
There should not be error on Activity tab. And not
500
on Branches tab.System Info
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]