Why is my webhook POST data empty?

159 views
Skip to first unread message

Dave Albert

unread,
Aug 14, 2014, 3:56:38 AM8/14/14
to rundeck...@googlegroups.com
I am testing out webhooks from RunDeck using version: 2.2.1-1


Using either URL I receive a POST request, but the POST data is empty.  The GET data is received without issue.

Am I missing a configuration option somewhere?  I don't see in the documentation a place to specify what data is sent.

Thanks,
  Dave

Greg Schueler

unread,
Aug 14, 2014, 12:23:01 PM8/14/14
to rundeck...@googlegroups.com
Hi Dave,

The webhook POST content is mentioned in the User Guide here http://rundeck.org/docs/manual/jobs.html#execution-notification-content . It is a text/xml document with a <notification> element containing the <execution> data from the API: http://rundeck.org/docs/api/index.html#listing-running-executions

I'm not sure why you don't see the POST data.  You can try to test against a service like http://requestb.in/, or a simple way is to just use netcat to listen on a port, like `nc -l 5000`, and then set the url to http://localhost:5000

If you're still not seeing and request body data, do you see any error messages in the rundeck service log?

--
Greg Schueler
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave Albert

unread,
Aug 15, 2014, 6:45:31 AM8/15/14
to rundeck...@googlegroups.com
Hi Greg,

  Thanks very much, it was indeed posting the XML data.  The web server was apparently just discarding it.  Thanks for telling me about http://requestb.in/ very handy indeed.

Kind Regards,
  Dave

Nicolas Devouge

unread,
Jan 16, 2018, 10:54:33 AM1/16/18
to rundeck-discuss
Hi, I need help with webhook, where can I write the XML information of Webhook response ? I think it's not in the WebGui, where I can just can set the URL of notification server, but I don't see where I can do this ?

Thank you !
Reply all
Reply to author
Forward
0 new messages