accent
accent copied to clipboard
Discord webhook not working on 1.7.0
Discord webhook not working on 1.7.0
Nothing comes through on discord, was working fine on older versions, I think 1.6.3 but not 100%
Actually it seems GitHub hooks also don't work
I can confirm that this doesn't work in version 1.9.1.
There's nothing in the log about the webhook working or not working either, not even if the URL is set to random text.
How are you running the application? We have a special clause for not running the async task like sending a webhook when the app is running inside iex
like with iex -S mix phx.server
I was just running it in a docker container, nothing special
Hi, any update on this? The Discord webhook still has no effect running 1.12.3 using Docker. There's nothing in the logs about it, either, unfortunately.
I'd also like to note that Discord-based authentication works perfectly, it's just the webhook that doesn't seem to do anything.
@Ellpeck Can you try it with another URL? The webhook has no special connexion to Discord beside the formatted payload. Can you use https://pipedream.com/requestbin to try it with another URL to see if the request is made?
Hi! I tried with the RequestBin URL, and two POST requests are made when two of the actions are selected in the webhook settings on Accent. Here is the full info of one of them:
{"event":{"method":"POST","path":"/","query":{},"client_ip":"94.219.87.130","url":"https://eo5txrdlsyjxs22.m.pipedream.net/","headers":{"host":"eo5txrdlsyjxs22.m.pipedream.net","content-length":"126","user-agent":"hackney/1.18.1","content-type":"application/json"},"body":{"text":"**API Client** just synced a file: *Localization*\n\n**Stats:**\nConflict on proposed: *1*\nConflict on slave: *18*"}},"context":{"id":"2LP6mmlwmETiCMcj8rJwFhitF49","ts":"2023-02-07T09:02:11.334Z","pipeline_id":null,"workflow_id":"p_aNCpL1Y","deployment_id":"d_kPsrG3BE","source_type":"COMPONENT","verified":false,"hops":null,"test":false,"replay":false,"owner_id":"u_owhM2pJ","platform_version":"3.36.1","workflow_name":"RequestBin","resume":null,"trace_id":"2LP6mnplcraa3edLAmJamQUOFCi"}}
I hope this is helpful for fixing this issue!
Hi, reporting back again from version 0.15.0. I tried this again, setting up the webhook again and everything, and it prints this info this time around:
accent | 11:12:02.765 hook_service=discord hook_url=https://discord.com/api/webhooks/<my webhook url> [info] Responded 400 in 251ms
accent | 11:12:02.909 hook_service=discord hook_url=https://discord.com/api/webhooks/<my webhook url> [info] Responded 400 in 276ms
Oh this means that the request Accent is sending to discord is not valid 🤔 I will validate the payload with the Discord API
Thanks for the report! 👍
Hi, I'm using the latest version (1.20.1) deployed in a docker container, and the Discord Webhook events seemingly don't get sent at all.
I tried using a requestbin endpoint as a test, and it never receives anything.
My test configuration: