Skip to content

Discord Webhook Error 400 #34027

Closed
Closed
@Bovive

Description

@Bovive

Description

After updating Gitea my Discord notifications no longer work. I did not change any configuration in Gitea or on Discord. I am able to send a curl test message to my webhook. Sending a test message to my webhook gives the following response:

Error 400

Headers:

Alt-Svc: h3=":443"; ma=86400
Cf-Cache-Status: DYNAMIC
Cf-Ray: 925921e2cbde29f4-ORD
Connection: keep-alive
Content-Length: 17
Content-Security-Policy: frame-ancestors 'none'; default-src https://o64374.ingest.sentry.io; report-to csp-sentry; report-uri https://o64374.ingest.sentry.io/api/5441894/security/?sentry_key=8fbbce30bf5244ec9429546beef21870&sentry_environment=stable
Content-Type: application/json
Date: Mon, 24 Mar 2025 21:06:26 GMT
Nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=gv0YKk7DZRkzLUeOeIIe3DjLqo96N0rsQfe4HnAkZSz8HNyPhcArpL1IaW0D5WmklGjL84m8CW9i7iO1KsYn09pp1zP5St6ckyP%2BdZEHc%2FGG51Codu%2FkTQTcCsBk"}],"group":"cf-nel","max_age":604800}
Reporting-Endpoints: csp-sentry="https://o64374.ingest.sentry.io/api/5441894/security/?sentry_key=8fbbce30bf5244ec9429546beef21870&sentry_environment=stable"
Server: cloudflare
Set-Cookie: __dcfduid=d9524f7808f311f082f06270192b2772; Expires=Sat, 23-Mar-2030 21:06:26 GMT; Max-Age=157680000; Secure; HttpOnly; Path=/; SameSite=Lax,__sdcfduid=d9524f7808f311f082f06270192b2772f32aae96089add0fd9912b677ae84ac499c730e6dedb0e58c75c39d5a9e0c551; Expires=Sat, 23-Mar-2030 21:06:26 GMT; Max-Age=157680000; Secure; HttpOnly; Path=/; SameSite=Lax,__cfruid=e1415af9c0b0b3005bfc12025dbb9c5c3c2961eb-1742850386; path=/; domain=.discord.com; HttpOnly; Secure; SameSite=None,_cfuvid=t7_yGkV4LQLMJiX4rKOzBaoFyCSRCsOz_gWkGQ0xl2k-1742850386495-0.0.1.1-604800000; path=/; domain=.discord.com; HttpOnly; Secure; SameSite=None
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Via: 1.1 google
X-Content-Type-Options: nosniff
X-Ratelimit-Bucket: 3d2712a9e4fe17cc9d3fed4a8e672e5f
X-Ratelimit-Limit: 5
X-Ratelimit-Remaining: 4
X-Ratelimit-Reset: 1742850387
X-Ratelimit-Reset-After: 1

Body:

{"embeds": ["0"]}

I tried deleting the webhook in Gitea and recreating it but now when I click "Test Delivery" nothing happens and there is nothing in "Recent Deliveries".

Edit: On further investigation it appears to be broken when changing the trigger from Push Events to Custom Events. My only marked Custom Event is "Release".

Gitea Version

1.23.6

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueLikely to be an easy fixissue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions