Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #257

Open
pascalclerin opened this issue Jun 18, 2024 · 0 comments

Comments

@pascalclerin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant