我想在Gitlab和discord之间通过一个weebhook集成一个bot,所以我首先配置了bot,复制了他的url并将其放入gitlab的weebhook配置输入中,并将其设置为向Discord服务器发送推送更新。
有了真正的推力测试,我有(身体)
Request headers:
Content-Type: application/json
X-Gitlab-Event: Push Hook作为回应
Response headers:
Date: Tue, 26 May 2020 18:46:48 GMT
Content-Type: application/json
Content-Length: 58
Connection: close
Set-Cookie: __cfduid=d374998c2f84e3e20b75bbdec88fb63d91590518808; expires=Thu, 25-Jun-20 18:46:48 GMT; path=/; domain=.discordapp.com; HttpOnly; SameSite=Lax, __cfruid=418f7199379a53d23012d37b15f2ac5a3aac36b6-1590518808; path=/; domain=.discordapp.com; HttpOnly; Secure; SameSite=None
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Ratelimit-Bucket: 3cd1f278bd0ecaf11e0d2391374c011d
X-Ratelimit-Limit: 5
X-Ratelimit-Remaining: 4
X-Ratelimit-Reset: 1590518811
X-Ratelimit-Reset-After: 2
X-Envoy-Upstream-Service-Time: 12
Via: 1.1 google
Cf-Cache-Status: DYNAMIC
Cf-Request-Id: 02f3e816a1000004823d920200000001
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Cf-Ray: 5999a9376a790482-CDG但得到了错误:
Response body:
{"message": "Cannot send an empty message", "code": 50006}或者也可以
Hook executed successfully but returned HTTP 400 {"message": "Cannot send an empty message", "code": 50006}感谢你的帮助
发布于 2020-11-28 22:06:47
您需要使用“集成”功能来处理“不一致通知”,而不是常规的webhook。
https://stackoverflow.com/questions/62029401
复制相似问题