R
Runpod14mo ago
qtiee

Discord webhook

How to use discord webhook with serverless? I tried with both "webhook" and "webhookV2"
11 Replies
Encyrption
Encyrption14mo 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
Encyrption14mo ago
That looks like it should work. What are you seeing happen? What is Discord expecting? Does your handler return any data?
qtiee
qtieeOP14mo ago
nothing happen Discord just need post request like requests.post(self.webhook_url, data=data, files=files)
Encyrption
Encyrption14mo ago
Do you have any way to tell if the worker is requesting the webhook?
qtiee
qtieeOP14mo ago
what do you mean sorry i dont understand
Encyrption
Encyrption14mo ago
How are you able to tell if the worker has hit the webhook URL or not?
qtiee
qtieeOP14mo ago
i dont know, i just add webhook to the request
Encyrption
Encyrption14mo ago
Ok, then how can you be sure that it is not working?
qtiee
qtieeOP14mo ago
it think it shuold log something to discord when request is completed
Encyrption
Encyrption14mo ago
Have you tried calling the URL manually to see if you can detect that?

Did you find this page helpful?