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

Trying to access array offset on value of type null #108

Open
red8001 opened this issue Nov 8, 2021 · 2 comments
Open

Trying to access array offset on value of type null #108

red8001 opened this issue Nov 8, 2021 · 2 comments

Comments

@red8001
Copy link

red8001 commented Nov 8, 2021

hi, i installed the package into my project and i give it to a form who send a request of variables to the controller but when i create
a meeting into zoom its display for me this error:
Trying to access array offset on value of type null

my function is like that :

public function store(Request $request)
{
$user = Zoom::user();
$meetingData = [
'topic' => $request->topic,
'duration' => $request->duration,
'password' => $request->password,
'start_time' => $request->start_time,
'timezone' => 'africa/casablanca'
];
$meeting = Zoom::meeting()->make($meetingData);
$meeting->settings()->make([
'join_before_host' => true,
'approval_type' => config('zoom.approval_type'),
'host_video' => false,
'participant_video' => false,
'mute_upon_entry' => true,
'waiting_room' => true,
'audio' => config('zoom.audio'),
'auto_recording' => config('zoom.auto_recording'),
]);
$user->meetings()->save($meeting);

and the error is generated from this path:
C:\wamp\www\smsd\vendor\macsidigital\laravel-api-client\src\Support\Builder.php:765
thanks for helping me

@norndorff
Copy link

norndorff commented Feb 16, 2022

The problem is you don't have an actual user to schedule the meeting for. You need to use the find() or get() function to get a user instance.

For example, you could do something like this to find a user by their email address:

$user = Zoom::user()->find('email@example.com');

@jesusdavidvaldivia
Copy link

EN: It could happend when the topic is to long, it have to bee max 200 characters length
ES: esto puede suceder cuando el tema es demasiado lago, tiene que ser de máximo una longitud de 200 caracteres.

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

3 participants