[Webhook] Not sending events to callbackURL

717 views
Skip to first unread message

a.og...@entouch.co.jp

unread,
Jul 27, 2018, 1:26:07 AM7/27/18
to BigBlueButton-dev
I've setup webhooks between my client application and BBB. Creating the hook returns XML with SUCCESS. However, the events are never send to the callback URL I provide. This is the journalctl log of bbb-webhooks:


[WebServer] GET request to /bigbluebutton/api/hooks/create?meetingID=someroomid&callbackURL=https%3A%2F%2Fwebhook.site%2Fe7847100-4a26-4c23-a1bf-4fec9d653c16&checksum=78197965f1a1ab

Jul 27 12:34:18 bbb-sales bbb-webhooks[7403]: 2018-07-27T03:34:18.365Z - info: [WebServer] respond with: <response><returncode>SUCCESS</returncode><hookID>1</hookID><messageKey>duplicateWarning</messageKey><message>There is already a hook for this callback URL

Jul 27 12:34:20 bbb-sales bbb-webhooks[7403]: 2018-07-27T03:34:20.930Z - info: [MessageMapping] Mapped message: {"data":{"type":"event","id":"user-joined","attributes":{"meeting":{"internal-meeting-id":"5a6111b83ca50f5e240db447bcca88c3f9cfea7c-1532662457206"},

Jul 27 12:34:20 bbb-sales bbb-webhooks[7403]: 2018-07-27T03:34:20.934Z - info: [MessageMapping] Mapped message: {"data":{"type":"event","id":"user-presenter-assigned","attributes":{"meeting":{"internal-meeting-id":"5a6111b83ca50f5e240db447bcca88c3f9cfea7c-1532

Jul 27 12:51:26 bbb-sales bbb-webhooks[7403]: 2018-07-27T03:51:26.347Z - info: [MessageMapping] Mapped message: {"
data":{"type":"event","id":"user-left","attributes":{"meeting":{"internal-meeting-id":"5a6111b83ca50f5e240db447bcca88c3f9cfea7c-1532662457206"},"u

Jul 27 13:07:12 bbb-sales bbb-webhooks[7403]: 2018-07-27T04:07:12.431Z - info: [MessageMapping] Mapped message: {"data":{"type":"event","id":"user-joined","attributes":{"meeting":{"internal-meeting-id":"5a6111b83ca50f5e240db447bcca88c3f9cfea7c-1532662457206"},

Jul 27 13:07:12 bbb-sales bbb-webhooks[7403]: 2018-07-27T04:07:12.435Z - info: [MessageMapping] Mapped message: {"data":{"type":"event","id":"user-presenter-assigned","attributes":{"meeting":{"internal-meeting-id":"5a6111b83ca50f5e240db447bcca88c3f9cfea7c-1532

Jul 27 13:07:27 bbb-sales bbb-webhooks[7403]: 2018-07-27T04:07:27.425Z - info: [MessageMapping] Mapped message: {"
data":{"type":"event","id":"meeting-ended","attributes":{"meeting":{"internal-meeting-id":"5a6111b83ca50f5e240db447bcca88c3f9cfea7c-1532662457206"

Jul 27 13:09:58 bbb-sales bbb-webhooks[7403]: 2018-07-27T04:09:58.498Z - error: [WebHooks] error processing the message: {"
header":{"timestamp":390233936,"name":"archive_started","current_time":1532664598,"version":"0.0.1"},"payload":{"record_id":"5a6111b83ca5

Jul 27 13:09:58 bbb-sales bbb-webhooks[7403]: 2018-07-27T04:09:58.722Z - error: [WebHooks] error processing the message: {"header":{"timestamp":390234162,"name":"archive_ended","current_time":1532664598,"version":"0.0.1"},"payload":{"success":true,"step_time":


I have tested multiple request catcher website to make sure they are working. I can also send a curl from the BBB server itself using:

curl -d '{"data":{"type":"event","id":"meeting-ended","attributes":{"meeting":{"internal-meeting-id":"5a6111b83ca50f5e240db447bcca88c3f9cfea7c-1532663121800"}},"event":{"ts":1532663146085}}}'  -X POST http://bbbtest.requestcatcher.com/test/event

which appear on my request catcher.

When does an event actually get sent to the callbackURL? Shouldn't it be immediate?

a.og...@entouch.co.jp

unread,
Jul 29, 2018, 12:38:25 AM7/29/18
to BigBlueButton-dev
I don't know the cause as yet, probably won't because... it's coffeescript ;)

But... I managed to get my hooks to send my altering web_hooks.js 

43 // && !config.hooks.getRaw
44         if (!_.isEmpty(message) ) {


and making sure the raw options are commented out in config_local.js.

Fred Dixon

unread,
Jul 29, 2018, 9:04:52 AM7/29/18
to BigBlueButton-dev
Thanks for sharing this -- we have made some recent fixes to webhooks that will be in the next update to BigBlueButton 2.0, see
  

This update should be released soon.

Regards,... Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.


--
BigBlueButton Developer
@bigbluebutton
Reply all
Reply to author
Forward
0 new messages