Discord Integration: Does not work with wrong icon url #3017

Closed
opened 2025-11-02 04:57:30 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @jaqra on GitHub (Mar 7, 2019).

  • Gitea version (or commit ref): 1.7.0
  • Git version:
  • Operating system: Windows
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

if i set icon url as local ip, discord does not recieve web hook.

It took my a lot time.

Maybe we can show a information about that?

Ex:
http://192.168.1.XXX:XXXXX/img/favicon.png

Originally created by @jaqra on GitHub (Mar 7, 2019). - Gitea version (or commit ref): 1.7.0 - Git version: - Operating system: Windows - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description if i set icon url as local ip, discord does not recieve web hook. It took my a lot time. Maybe we can show a information about that? Ex: http://192.168.1.XXX:XXXXX/img/favicon.png
GiteaMirror added the issue/stale label 2025-11-02 04:57:30 -06:00
Author
Owner

@techknowlogick commented on GitHub (Mar 8, 2019):

What do your webhook logs say for the failed hooks?

@techknowlogick commented on GitHub (Mar 8, 2019): What do your webhook logs say for the failed hooks?
Author
Owner

@jaqra commented on GitHub (Mar 11, 2019):

Interestingly, hook does not fail.

headers

Request URL: https://discordapp.com/api/webhooks/XXX
Request method: POST
Content-Type: application/json
X-GitHub-Delivery: 542e9f86-e181-41ef-8baa-b6f0471de2a9
X-GitHub-Event: issues
X-Gitea-Delivery: 542e9f86-e181-41ef-8baa-b6f0471de2a9
X-Gitea-Event: issues
X-Gogs-Delivery: 542e9f86-e181-41ef-8baa-b6f0471de2a9
X-Gogs-Event: issues

Content

{
  "wait": false,
  "content": "",
  "username": "Gitea",
  "avatar_url": "http://192.168.1.XXX:XXXXX/img/favicon.png",
  "tts": false,
  "embeds": [
    {
      "title": "[XXX/TEST] Issue assigned to xxx: #2 qwe",
      "description": "qweqwe",
      "url": "http://192.168.1.XXX:XXXXX/xxx/TEST/issues/2",
      "color": 1754624,
      "footer": {
        "text": ""
      },
      "author": {
        "name": "XXX",
        "url": "http://192.168.1.XXX:XXXXX/XXX",
        "icon_url": "http://192.168.1.XXX:XXXXX/avatars/9564c3c425639786ce6f9d71f7f1bb2f"
      },
      "fields": null
    }
  ]
}

Response 204

Alt-Svc: clear
Cf-Ray: 4b5ce2a93daea7fa-IST
Connection: keep-alive
Content-Length: 0
Content-Type: text/html; charset=utf-8
Date: Mon, 11 Mar 2019 10:36:06 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cfduid=d085c27b9eb2e44aa46aed1879dd22d841552300565; expires=Tue, 10-Mar-20 10:36:05 GMT; path=/; domain=.discordapp.com; HttpOnly
Strict-Transport-Security: max-age=31536000; includeSubDomains
Via: 1.1 google
X-Ratelimit-Limit: 5
X-Ratelimit-Remaining: 4
X-Ratelimit-Reset: 1552300569

Body


@jaqra commented on GitHub (Mar 11, 2019): Interestingly, hook does not fail. headers ``` Request URL: https://discordapp.com/api/webhooks/XXX Request method: POST Content-Type: application/json X-GitHub-Delivery: 542e9f86-e181-41ef-8baa-b6f0471de2a9 X-GitHub-Event: issues X-Gitea-Delivery: 542e9f86-e181-41ef-8baa-b6f0471de2a9 X-Gitea-Event: issues X-Gogs-Delivery: 542e9f86-e181-41ef-8baa-b6f0471de2a9 X-Gogs-Event: issues ``` Content ``` { "wait": false, "content": "", "username": "Gitea", "avatar_url": "http://192.168.1.XXX:XXXXX/img/favicon.png", "tts": false, "embeds": [ { "title": "[XXX/TEST] Issue assigned to xxx: #2 qwe", "description": "qweqwe", "url": "http://192.168.1.XXX:XXXXX/xxx/TEST/issues/2", "color": 1754624, "footer": { "text": "" }, "author": { "name": "XXX", "url": "http://192.168.1.XXX:XXXXX/XXX", "icon_url": "http://192.168.1.XXX:XXXXX/avatars/9564c3c425639786ce6f9d71f7f1bb2f" }, "fields": null } ] } ``` Response 204 ``` Alt-Svc: clear Cf-Ray: 4b5ce2a93daea7fa-IST Connection: keep-alive Content-Length: 0 Content-Type: text/html; charset=utf-8 Date: Mon, 11 Mar 2019 10:36:06 GMT Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Server: cloudflare Set-Cookie: __cfduid=d085c27b9eb2e44aa46aed1879dd22d841552300565; expires=Tue, 10-Mar-20 10:36:05 GMT; path=/; domain=.discordapp.com; HttpOnly Strict-Transport-Security: max-age=31536000; includeSubDomains Via: 1.1 google X-Ratelimit-Limit: 5 X-Ratelimit-Remaining: 4 X-Ratelimit-Reset: 1552300569 ``` Body ``` ```
Author
Owner

@jaqra commented on GitHub (Mar 11, 2019):

Snip

@jaqra commented on GitHub (Mar 11, 2019): ![Snip](https://user-images.githubusercontent.com/48099350/54118181-7fba0980-4403-11e9-9489-add5adc80b9d.JPG)
Author
Owner

@lafriks commented on GitHub (Apr 8, 2019):

Could be discord ignores webhooks with local network urls/images in it?

@lafriks commented on GitHub (Apr 8, 2019): Could be discord ignores webhooks with local network urls/images in it?
Author
Owner

@jaqra commented on GitHub (Apr 8, 2019):

@lafriks Maybe. Just we can show a information about that on webhook settings page. I think that is enough

@jaqra commented on GitHub (Apr 8, 2019): @lafriks Maybe. Just we can show a information about that on webhook settings page. I think that is enough
Author
Owner

@stale[bot] commented on GitHub (Jun 7, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jun 7, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Jun 21, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Jun 21, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3017