RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.61k stars 10.61k forks source link

A connection to an external instance of Big Blue Button (bbb) via Integration API does not work. #22443

Open betamax65 opened 3 years ago

betamax65 commented 3 years ago

Description:

We have an external provider for BBB. This provider has sent us a URL "https://xxx.xxxxxxxxx.xx/de/bbb-integration/api" and an API secret: "xxxxxxxx-xxxx-xxxx-xxxxxxxx" to the integration API. These were entered into the fields "Domain" and "Shared Secret". (Administration -> Video conference -> Big Blue Button)

Steps to reproduce

Not applicable

Expected behavior:

As expected, the option to click on the telephone receiver to start a conference appears within individual windows. This opens another small window in the right pane with a button: "Start meeting".

When pressing this button, I would have expected the meeting to open at bbb (either in the same window, or if selected in a new window).

Actual behavior:

When you press the "Start Meeting" button, nothing happens. No meeting is started, the communication partner does not receive a message, and no new window is opened (if this was selected in the administration).

Server Setup Information:

Client Setup Information

Additional context

I read something somewhere about a way to configure bbb via webhooks. I don't have this possibility because we don't host the bbb instance ourselves. But from my point of view this should not be necessary because of the existing integration API.

Relevant logs:

I20210622-11:20:15.869(2) Exception while invoking method bbbJoin Error: failed [404] <!DOCTYPE html>      <meta charset="utf-8">     bbbserver.de - Big Blue Button Video-Konferenzen    <meta name="msapplication-tap-highlight" content="no"/>     <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge">    <link href="/assets/altair/bowercomponents/uikit/css/uikit.almost-flat.min.css?=1624009052" media="screen" rel="stylesheet"...     at Object.exports.makeErrorByStatus (packages/http.js:182:10)     at Request._callback (packages/http.js:142:24)     at Request.self.callback (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/http/node_modules/request/request.js:185:22)     at Request.emit (events.js:314:20)     at Request.EventEmitter.emit (domain.js:483:12)     at Request. (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/http/node_modules/request/request.js:1161:10)     at Request.emit (events.js:314:20)     at Request.EventEmitter.emit (domain.js:483:12)     at IncomingMessage. (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/http/node_modules/request/request.js:1083:12)     at Object.onceWrapper (events.js:420:28)     at IncomingMessage.emit (events.js:326:22)     at IncomingMessage.EventEmitter.emit (domain.js:483:12)     at endReadableNT (_stream_readable.js:1241:12)     at processTicksAndRejections (internal/process/task_queues.js:84:21)  => awaited here:     at Promise.await (/opt/Rocket.Chat/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:60:12)     at Server.apply (packages/ddp-server/livedata_server.js:1638:22)     at Server.call (packages/ddp-server/livedata_server.js:1607:17)     at Object.post (app/api/server/v1/misc.js:263:26)     at app/api/server/api.js:394:82     at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)     at Object._internalRouteActionHandler [as action] (app/api/server/api.js:394:39)     at Route.share.Route.Route._callEndpoint (packages/nimble_restivus/lib/route.coffee:150:32)     at packages/nimble_restivus/lib/route.coffee:59:33     at packages/simple_json-routes.js:98:9 

johncrisp commented 3 years ago

Hi and thanks for reporting this.

I think you need to look at this:

bbbJoin Error: failed [404]

<title>bbbserver.de - Big Blue Button Video-Konferenzen</title>

That seems to suggest that the destination is not reachable and that your settings are wrong.

Please go back and check again.

betamax65 commented 3 years ago

Hello

i try the link from cli (rocket chat server) and got this:

--------------- schnipp -------------- sysadmin@rocketchat:~$ wget https://app.bbbserver.de/de/bbb-integration/api --2021-06-29 20:24:57-- https://app.bbbserver.de/de/bbb-integration/api Resolving app.bbbserver.de (app.bbbserver.de)... 49.12.18.222, 2a01:4f8:c011:742::1 Connecting to app.bbbserver.de (app.bbbserver.de)|49.12.18.222|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/xml] Saving to: ‘api’

api [ <=> ] 77 --.-KB/s in 0s

2021-06-29 20:24:58 (2.15 MB/s) - ‘api’ saved [77]

sysadmin@rocketchat:~$ cat api

SUCCESS 2.0

--------------------- schnapp --------------------

This did not look (for me) as an broken link. I also test the link from https://mconf.github.io/api-mate/ which told me also that the link is working fine.

Today i upgrade to Version 3.16.0. Problem still exist.

br kai

Karting06 commented 3 years ago

Hi @betamax65,

I have BigBlueButton working correctly. Did you install bbb-webhooks? I think that it's needed for the integration.

You can install it like this sudo apt-get install bbb-webhooks Here is the doc: https://docs.bigbluebutton.org/dev/webhooks.html

EDIT: I also think that you use the wrong url. My BBB instance is at https://bbb.domain.com. So in your case, I think you should use: https://xxx.xxxxxxxxx.xx/de.