Illuminate \ Http \ Client \ ConnectionException

PHP 8.2.31 Fr 11.6.0

cURL error 28: Failed to connect to instagram-public-bulk-scraper.p.rapidapi.com port 443 after 8752 ms: Couldn't connect to server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://instagram-public-bulk-scraper.p.rapidapi.com/v1/download_story?username=unionstationla&nocors=true

Expand vendor frames
4 vendor frames
App \ Services \ InstagramService : 25
client
App \ Services \ InstagramService : 69
App\Services\{closure}
Illuminate \ Cache \ Repository : 405
remember
Illuminate \ Cache \ CacheManager : 440
__call
Illuminate \ Support \ Facades \ Facade : 357
__callStatic
App \ Services \ InstagramService : 68
getStoriesByUsername

class InstagramService {
private $token = "07d6e4b200msh425a6faf342d176p1dd0c6jsnb39538a21a09"; 
private $host = "instagram-public-bulk-scraper.p.rapidapi.com";
private $baseUrl = "https://instagram-public-bulk-scraper.p.rapidapi.com/v1"; 
private function client($url, $body = [], $method = "post"):
Response { $httpClient = Http::withHeaders([ 'X-RapidAPI-Host' => $this->host, 'X-RapidAPI-Key' => $this->token, 'content-type' => 'application/json', ]);
if (strtolower($method) === 'get') {
return $httpClient->get($this->baseUrl . $url); }
elseif (strtolower($method) === 'post') {
return $httpClient->post($this->baseUrl . $url, $body);
} else { throw new \Inv dArgumentException("Inv d HTTP method: $method"); } } /** * Get the cache expiration time. * * @return \DateTime */ private function getCacheExpiration(): \DateTime {
