R
RunPod5mo ago
TungDQ

Discord webhook

How to use discord webhook with serverless? I tried with both "webhook" and "webhookV2"
11 Replies
Encyrption
Encyrption5mo ago
I am not familar with Discord webhook. Can you show me an example of the JSON you are posting, that includes your webhook?
Encyrption
Encyrption5mo ago
That looks like it should work. What are you seeing happen? What is Discord expecting? Does your handler return any data?
TungDQ
TungDQOP5mo ago
nothing happen Discord just need post request like requests.post(self.webhook_url, data=data, files=files)
Encyrption
Encyrption5mo ago
Do you have any way to tell if the worker is requesting the webhook?
TungDQ
TungDQOP5mo ago
what do you mean sorry i dont understand
Encyrption
Encyrption5mo ago
How are you able to tell if the worker has hit the webhook URL or not?
TungDQ
TungDQOP5mo ago
i dont know, i just add webhook to the request
Encyrption
Encyrption5mo ago
Ok, then how can you be sure that it is not working?
TungDQ
TungDQOP5mo ago
it think it shuold log something to discord when request is completed
Encyrption
Encyrption5mo ago
Have you tried calling the URL manually to see if you can detect that?

Did you find this page helpful?