Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook not working in 3.1.0 with Forgejo #4887

Open
3 tasks done
srohr-luther opened this issue Feb 22, 2025 · 2 comments
Open
3 tasks done

Webhook not working in 3.1.0 with Forgejo #4887

srohr-luther opened this issue Feb 22, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@srohr-luther
Copy link

Component

server

Describe the bug

Incoming webhooks are not working in 3.1.0 for Forgejo.

Steps to reproduce

  1. fresh install of Forgejo (tried 9.0.3 and 10.0.1)
  2. fresh install of Woodpecker Server following https://woodpecker-ci.org/docs/administration/forges/forgejo
  3. enable some repo
  4. pushing to repository in Forgejo just gives "failure to parse token from hook" (see additional context)

Expected behavior

I would expect that triggering builds via webhook from the forge works.

System Info

{
    "source": "https://github.com/woodpecker-ci/woodpecker",
    "version": "3.1.0"
}

Additional context

woodpecker-server[7155]: {"level":"error","error":"token is unverifiable: error while executing keyfunc: sql: no rows in result set","time":"2025-02-22T14:14:23+01:00","message":"failure to parse token from hook"}

3.0.1 works, 3.1.0 does not.

Validations

  • 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/versions]
@srohr-luther srohr-luther added the bug Something isn't working label Feb 22, 2025
@srohr-luther
Copy link
Author

srohr-luther commented Feb 22, 2025

Login, adding/enabling repos, triggering builds manually all works; it's just the webhook that is borked somehow.

I'm using Forgejo und Woodpecker since a while ago (multiple versions of both) and never had an issue like this.

shared/token/token.go and server/api/hook.go don't look like they had any changes between 3.0.1 and 3.1.0 so I'm at a loss here.

Will try to find out more over the next days.

@qwerty287
Copy link
Contributor

Does repairing help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants