Hey, I'm trying the webhook, but it doesn't work.
It seems to work perfectly fine when using English only commit descriptions but I have to be able to use german language and umlauts, i.e. öäüß.
This is the log I get when I used the verbose version ( https://github.com/intrigus/travis-ci-discord-webhook/blob/master/send.sh ).
I also attached a log of a working commit.
Failing version:
(Has umlauts and is multiline - maybe multiline is the culprit?)
[0K$ ./send.sh failure $WEBHOOK_URL
[Webhook]: Sending webhook to Discord...
START WEBHOOK_DATA
{
"username": "",
"avatar_url": "https://travis-ci.org/images/logos/TravisCI-Mascot-1.png",
"embeds": [ {
"color": 15158332,
"author": {
"name": "Job #1.1 (Build #1) Failed - intrigus/pse2019",
"url": "https://travis-ci.com/intrigus/pse2019/builds/111121611",
"icon_url": "https://travis-ci.org/images/logos/TravisCI-Mascot-red.png"
},
"title": "[CI] Travis Konfigurationsdatei hinzugefügt.",
"url": "",
"description": "Zeile 3-9 ist die von Travis empfohlene Standardkonfiguration, um Probleme
mit dem Caching zu vermeiden, wenn man Gradle verwendet.
Der Rest ist zuständig für die Integration mit unserem Discord-Server.\n\nintrigus authored & GitHub committed",
"fields": [
{
"name": "Commit",
"value": "6332f65
",
"inline": true
},
{
"name": "Branch/Tag",
"value": "master
",
"inline": true
}
],
"timestamp": "2019-05-08T22:40:51Z"
} ]
}
END WEBHOOK_DATA
- Hostname was NOT found in DNS cache
- Trying 104.16.58.5...
- Connected to discordapp.com (104.16.58.5) port 443 (#0)
- successfully set certificate verify locations:
- CAfile: none
CApath: /etc/ssl/certs
- SSLv3, TLS handshake, Client hello (1):
} [data not shown]
- SSLv3, TLS handshake, Server hello (2):
{ [data not shown]
- SSLv3, TLS handshake, CERT (11):
{ [data not shown]
- SSLv3, TLS handshake, Server key exchange (12):
{ [data not shown]
- SSLv3, TLS handshake, Server finished (14):
{ [data not shown]
- SSLv3, TLS handshake, Client key exchange (16):
} [data not shown]
- SSLv3, TLS change cipher, Client hello (1):
} [data not shown]
- SSLv3, TLS handshake, Finished (20):
} [data not shown]
- SSLv3, TLS change cipher, Client hello (1):
{ [data not shown]
- SSLv3, TLS handshake, Finished (20):
{ [data not shown]
- SSL connection using ECDHE-RSA-AES128-GCM-SHA256
- Server certificate:
- subject: OU=Domain Control Validated; OU=PositiveSSL; CN=discordapp.com
- start date: 2017-02-24 00:00:00 GMT
- expire date: 2020-03-11 23:59:59 GMT
- subjectAltName: discordapp.com matched
- issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
- SSL certificate verify ok.
POST /api/webhooks/575808920900206594/ggjFSI36Qsf6RodG26LGUlMEjLGVYI9-Y1kgwoDVm0YXfL5LdG3Y0TlV6MnLGTVMbIZV HTTP/1.1
User-Agent: TravisCI-Webhook
Host: discordapp.com
Accept: /
Content-Type:application/json
X-Author:k3rn31p4nic#8383
Content-Length: 1120
Expect: 100-continue
< HTTP/1.1 100 Continue
} [data not shown]
######################################################################## 100.0%* The requested URL returned error: 400 BAD REQUEST
- Closing connection 0
- SSLv3, TLS alert, Client hello (1):
} [data not shown]
curl: (22) The requested URL returned error: 400 BAD REQUEST
[Webhook]: Unable to send webhook.
Working version with different subject&description#
�[0K$ ./send.sh failure $WEBHOOK_URL
[Webhook]: Sending webhook to Discord...
START WEBHOOK_DATA
{
"username": "",
"avatar_url": "https://travis-ci.org/images/logos/TravisCI-Mascot-1.png",
"embeds": [ {
"color": 15158332,
"author": {
"name": "Job #5.1 (Build #5) Failed - intrigus/pse2019",
"url": "https://travis-ci.com/intrigus/pse2019/builds/111124240",
"icon_url": "https://travis-ci.org/images/logos/TravisCI-Mascot-red.png"
},
"title": "Umlaut-Test äöü",
"url": "",
"description": "\n\nintrigus authored & GitHub committed",
"fields": [
{
"name": "Commit",
"value": "2e9580e
",
"inline": true
},
{
"name": "Branch/Tag",
"value": "ci-debug-test
",
"inline": true
}
],
"timestamp": "2019-05-08T22:53:12Z"
} ]
}
END WEBHOOK_DATA
- Hostname was NOT found in DNS cache
- Trying 104.16.58.5...
- Connected to discordapp.com (104.16.58.5) port 443 (#0)
- successfully set certificate verify locations:
- CAfile: none
CApath: /etc/ssl/certs
- SSLv3, TLS handshake, Client hello (1):
} [data not shown]
- SSLv3, TLS handshake, Server hello (2):
{ [data not shown]
- SSLv3, TLS handshake, CERT (11):
{ [data not shown]
- SSLv3, TLS handshake, Server key exchange (12):
{ [data not shown]
- SSLv3, TLS handshake, Server finished (14):
{ [data not shown]
- SSLv3, TLS handshake, Client key exchange (16):
} [data not shown]
- SSLv3, TLS change cipher, Client hello (1):
} [data not shown]
- SSLv3, TLS handshake, Finished (20):
} [data not shown]
- SSLv3, TLS change cipher, Client hello (1):
{ [data not shown]
- SSLv3, TLS handshake, Finished (20):
{ [data not shown]
- SSL connection using ECDHE-RSA-AES128-GCM-SHA256
- Server certificate:
- subject: OU=Domain Control Validated; OU=PositiveSSL; CN=discordapp.com
- start date: 2017-02-24 00:00:00 GMT
- expire date: 2020-03-11 23:59:59 GMT
- subjectAltName: discordapp.com matched
- issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO RSA Domain Validation Secure Server CA
- SSL certificate verify ok.
POST /api/webhooks/575808920900206594/ggjFSI36Qsf6RodG26LGUlMEjLGVYI9-Y1kgwoDVm0YXfL5LdG3Y0TlV6MnLGTVMbIZV HTTP/1.1
User-Agent: TravisCI-Webhook
Host: discordapp.com
Accept: /
Content-Type:application/json
X-Author:k3rn31p4nic#8383
Content-Length: 901
} [data not shown]
######################################################################## 100.0%* upload completely sent off: 901 out of 901 bytes
< HTTP/1.1 204 NO CONTENT
< Date: Wed, 08 May 2019 22:53:13 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 0
< Connection: keep-alive
< Set-Cookie: __cfduid=d6c5a602a1b95cec234239559d46d35141557355993; expires=Thu, 07-May-20 22:53:13 GMT; path=/; domain=.discordapp.com; HttpOnly
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< X-RateLimit-Limit: 5
< X-RateLimit-Remaining: 4
< X-RateLimit-Reset: 1557355996
< Via: 1.1 google
< Alt-Svc: clear
< Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
- Server cloudflare is not blacklisted
< Server: cloudflare
< CF-RAY: 4d3f022c3f147159-ORD
<
- Connection #0 to host discordapp.com left intact
[Webhook]: Successfully sent the webhook.