R
Runpod•16mo ago
Encyrption

Does webhook work when testing locally?

I am trying to test serverless worker locally and everything runs fine except it doesn't call the webhook I provided in the test_input.json file. Here is an example of the JSON I am sending is this correct for calling a webhook? { "input": { "sample": "testvalue" }, "webhook": "https://myhost.com/log" } Thanks! 🙂
10 Replies
Unknown User
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Encyrption
EncyrptionOP•16mo ago
yes it is I am able to hit the URL using Postman. It seems as if the webhook is not being called.
Unknown User
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Encyrption
EncyrptionOP•16mo ago
Not how it is configured right now. I am just testing if bare minimum to get it working.
Unknown User
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Encyrption
EncyrptionOP•16mo ago
Nah, I don't think that would prove anything....
Unknown User
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
Encyrption
EncyrptionOP•16mo ago
I'll run it on RP and see if it calls from there. If it does then I can add code to do the request locally. My guess is that RP itself is calling the webhook, not the python code.
EMPZ
EMPZ•15mo ago
I'm also interested in this. A quick try when developing locally didn't call my webhook (yes, it's internet-facing and accessible).
Encyrption
EncyrptionOP•15mo ago
I know it doesn't fire when testing locally with the test_input.json. I have not tested it with the rp_serve_api method. I ended up adding code into my image that detects it is running locally and calls the webhook provided in the job JSON.

Did you find this page helpful?