bigbluebutton-api-php icon indicating copy to clipboard operation
bigbluebutton-api-php copied to clipboard

Fatal error: Uncaught RuntimeException: Unhandled curl error: Could not resolve host: api in /home/eventicovh/public_html/aladicosmeticos2024/func/vendor/bigbluebutton/bigbluebutton-api-php/src/BigBlueButton.php:487 Stack t

Open pascalclerin opened this issue 1 year ago • 0 comments

Hello, I have installed bbb 2.7 and use the following code:

================================================ //----Llamada a la lib BBB (vc) require_once './func/vendor/autoload.php';

use BigBlueButton\BigBlueButton; use BigBlueButton\Parameters\CreateMeetingParameters; use BigBlueButton\Parameters\JoinMeetingParameters; use BigBlueButton\Parameters\GetMeetingInfoParameters; use BigBlueButton\Parameters\EndMeetingParameters;

$bbb = new BigBlueButton(); $createMeetingParams = new CreateMeetingParameters('bbb-meeting-uid-65', 'BigBlueButton API Meeting'); $response = $bbb->createMeeting($createMeetingParams);

I have created the environment variables in /etc/apache2/envvars export BBB_SECRET="8cDH7ygM4SXfXooxhTsdEZWSAes4zQPHuX17mXXXXX" export BBB_SERVER_BASE_URL="salas.citasvirtuales.online"

and modificated the phpunit.xml.dist with secret and url_base, and I have the error:

Fatal error: Uncaught RuntimeException: Unhandled curl error: Could not resolve host: api in /home/eventicovh/public_html/aladicosmeticos2024/func/vendor/bigbluebutton/bigbluebutton-api-php/src/BigBlueButton.php:487 Stack trace: #0 /home/eventicovh/public_html/aladicosmeticos2024/func/vendor/bigbluebutton/bigbluebutton-api-php/src/BigBlueButton.php(115): BigBlueButton\BigBlueButton->processXmlResponse() #1 /home/eventicovh/public_html/aladicosmeticos2024/test_bbb.php(14): BigBlueButton\BigBlueButton->createMeeting() #2 {main} thrown in /home/eventicovh/public_html/aladicosmeticos2024/func/vendor/bigbluebutton/bigbluebutton-api-php/src/BigBlueButton.php on line 487

I don't understand what is wrong. Thank for your help

Pascal

pascalclerin avatar Jun 18 '24 02:06 pascalclerin