Description
I am getting a connection timout error when running a PHP script that consumes the API to get cloud recordings. This error is killing the process execution.
This PHP scripts is running as a command line inside a virtual machine.
I am using this code:
$url = ‘https://api.zoom.us/v2/meetings/’ . $meetingid . ‘/recordings’;
$payload = array(
‘iss’ => $this->apikey,
‘exp’ => time() + 40
);
$token = \Firebase\JWT\JWT::encode($payload, $this->apisecret);
$curl = curl_init();
$curl_header = array();
$curl_header = 'Authorization: Bearer ’ . $token;
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, $curl_header);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
Error
PHP Fatal error: Uncaught Exception: Failed connect to api.zoom.us:443; Connection timed out
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT
Which Endpoint/s?
GET /meetings/{meetingId}/recordings
How To Reproduce (If applicable)
After 7000 request to the API endpoint using differents meetingsId i am getting this error (the request rate is 1 per second aprox)
Additional context
This script is part of a massive recordings backup project from a peruvian university.