gitea: Unable to deliver webhook task[53215]: webhook does not exist [id: 134]

Description

2023/07/07 15:54:26 ...s/webhook/webhook.go:125:handler() [E] Unable to deliver webhook task[53215]: webhook does not exist [id: 134]

Gitea Version

v1.20+

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

./gitea web

Database

MySQL

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (17 by maintainers)

Commits related to this issue

Most upvoted comments

very strange,here is my gitea compiled from the latest commit @puni9869 image

2023/07/30 01:14:28 ...s/webhook/webhook.go:130:handler() [E] Unable to deliver webhook task[53215]: webhook does not exist [id: 134]

Gitea version: Gitea version 1.20.0+rc0-422-g11074258f built with GNU Make 4.2.1, go1.20.6 : bindata

I found it but different error image

Steps to repo: Create A repo. Commit something. Create a webhook Delete the repo. Then Bingo the error in webhook will produce. @hiifong @silverwind

Shall we log warn level instead of error level in the program.

Maybe yes.

Maybe we should clean the tasks in queues before deleting database records when deleting a repository.

TBH, it’s not the right way. Queue item couldn’t/shouldn’t be deleted ad-hoc.

It should simply ignore the non-existing webhooks.

Are you testing it on your local system or on testing instance. The error only persist when we delete any repo with a webhook PS: in my local when I restart the project I don’t see any error. I mean make watch

prod