accent icon indicating copy to clipboard operation
accent copied to clipboard

Discord webhook not working on 1.7.0

Open Fma965 opened this issue 4 years ago • 4 comments

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%

Fma965 avatar Dec 29 '20 21:12 Fma965

Actually it seems GitHub hooks also don't work

Fma965 avatar Feb 09 '21 12:02 Fma965

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.

Ellpeck avatar Jan 20 '22 15:01 Ellpeck

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

simonprev avatar Jan 21 '22 16:01 simonprev

I was just running it in a docker container, nothing special

Fma965 avatar Jan 21 '22 17:01 Fma965

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 avatar Dec 30 '22 09:12 Ellpeck

@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?

simonprev avatar Feb 06 '23 03:02 simonprev

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!

Ellpeck avatar Feb 07 '23 09:02 Ellpeck

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

Ellpeck avatar Apr 21 '23 11:04 Ellpeck

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! 👍

simonprev avatar Apr 21 '23 13:04 simonprev

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: immagine

farfalk avatar Mar 10 '24 11:03 farfalk