Webook API doesn't work (please urgent production app next week)

102 views
Skip to first unread message

Illyas Chihi

unread,
Aug 8, 2024, 2:18:40 PM8/8/24
to BigBlueButton-dev
Hi everyone,

I worked 3 days on this, i am trying to create a webhook on my bigbluebutton server. I follow the official documentation of webhooks: https://docs.bigbluebutton.org/development/webhooks/#installation

I have the checksum problem for no reason, i create my own function to generate the checksum (working perfectly fine with main bbb api), so i think the problem is comming from my parameters construction. I really tried every combination, using 'create' before parameters to construct the checksum like the main api create for room. Please o really need help for this to get in production next week. I construct my parameter with this way:
```
const queryStringWebhook = `callbackURL=${encodeURIComponent(callbackURL)}&meetingID=${encodeURIComponent(meeting_id)}`;
const checksumWebhook = GenerateChecksum(secret, `create${queryStringWebhook}`);
const urlWebhook = `${baseURL}/create?${queryStringWebhook}&checksum=${checksumWebhook}`;
```

Jay Padaliya

unread,
Aug 8, 2024, 11:44:02 PM8/8/24
to BigBlueButton-dev
hi 

you need to use "hooks/create" instead "create" in checksum

const checksumWebhook = GenerateChecksum(secret, `hooks/create${queryStringWebhook}`);

Illyas Chihi

unread,
Aug 9, 2024, 5:19:20 AM8/9/24
to BigBlueButton-dev
Hi Jay,

Thank you for your answer, i saw nothing about 'hooks/create' in documentation, i will try this today and give you a feedback about it.

Jay Padaliya

unread,
Aug 9, 2024, 5:47:50 AM8/9/24
to BigBlueButton-dev
hi Illyas

it is basically path of url after main base url
http://yourserver.com/bigbluebutton/api/[from here path goes to checksum]

Illyas Chihi

unread,
Aug 9, 2024, 9:22:47 AM8/9/24
to BigBlueButton-dev
Hi Jay,

In documentation, it says that the url for webhook is http://yourserver.com/bigbluebutton/api/hooks
I will try generate the checksum with "hooks/create[params]" and tell you what's going on 

prlanzarin

unread,
Aug 9, 2024, 10:24:20 AM8/9/24
to BigBlueButton-dev
As mentioned, create URL is wrong.
I recommend first testing the webhooks creation procedure via API Mate to certify you're doing it correctly.
See https://docs.bigbluebutton.org/3.0/development/webhooks/#test-it.

```
Follow the steps:

  • Open your webhooks catcher of choice and copy its endpoint URL.
  • Open API Mate and configure your server and shared secret.
  • On the menu "Custom parameters", there's a field "Custom API calls:". Add these values to it:
    • hooks/create
    • hooks/list
  • On the same menu section, add the following values to "Custom parameters:":
    • callbackURL=<your webhook catcher URL>

  • On the API Mate, click on the "custom call: hooks/create" link. It should respond with a success message.
  • On the API Mate, click on the "custom call: hooks/list" link to check if your hook was really registered.
  • Create a meeting and join it using the API Mate.
  • Do stuff inside the meeting and check your webhooks endpoint to see if it received the callbacks.
```
Reply all
Reply to author
Forward
0 new messages