Skip to content

Webhooks to Discord not working. #14379

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

Closed
ziplock9000 opened this issue Jan 18, 2021 · 3 comments
Closed

Webhooks to Discord not working. #14379

ziplock9000 opened this issue Jan 18, 2021 · 3 comments

Comments

@ziplock9000
Copy link

Gita Version: 1.13.0
OS: Windows 10, Using pre-compiled binary

The webhook does not work and comes back with the response / error {"embeds": ["0"]}

I have Gitea set up on a private LAN that is not accessible from the internet. I've set up webhooks to talk to a Discord server. The JSON that is generated to be sent to the Discord server from the Gitea server has several URLs that are only accessible and valid within the LAN, which a Discord server won't have access to.

URLS such as "url": "http://myserver:myport/myuser"

If the issue is that the Gitea server is hidden on the LAN, then a configuration option should be available to remove any JSON entries that require this. So a less functional, but still working version of the Discord message.

@techknowlogick
Copy link
Member

This is an error with Discord, as if they can't fetch a link inside an API call then they refuse to publish content as is. I'm going to close this as customization on this level would be better suited to the webhook template issue.

@ziplock9000
Copy link
Author

Which "webhook template issue"? Can you provide a link at least?

Searching for template or webhook does not bring up any obvious issues that would solve this problem

@techknowlogick

@jolheiser
Copy link
Member

@ziplock9000 #1089 (also included in the list in #3998)

@go-gitea go-gitea locked and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants