App\Core\Tmdb\TmdbClient->send():108 PHP 8.2.25

Tmdb Client Error: {"success":false,"status_code":11,"status_message":"Internal error: Something went wrong, contact TMDb.","combined_credits":{"cast":[{"adult":false,"backdrop_path":"/oEOwWlYlNmqJfYGJ9P30iYkgvuR.jpg","genre_ids":[18,10749],"id":38021,"original_language":"fr","original_title":"Les temps qui changent","overview":"In Tangiers where he traveled for his work, a man finds the woman he loved, and attempts to revive their romance though it ended some 30 years earlier.","popularity":3.666,"poster_path":"/cUF2Dbtsayn0q2KebksAzvbLlwN.jpg","release_date":"2004-12-08","title":"Changing Times","video":false,"vote_average":5.4,"vote_count":23,"character":"Bilal","credit_id":"52fe468a9251416c91057aaf","order":8,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35,18],"id":49919,"original_language":"fr","original_title":"Café de la plage","overview":"Driss is a jack-of-all trades type who sells fish from his car and moves furniture from one end of his hometown Tangiers to the other. His girlfriend is a free-spirited and wealthy European lass who runs an antique shop. One day, Driss becomes fascinated with Fouad, an old man who runs a rundown café by the beach. Fouad disdains his fellow Moroccans, calling them lazy, preferring the company of Europeans -- particularly, as Driss later learns -- young European women. Always on the make, Driss offers Fouad a business proposition -- to revamp his establishment and turn it into a proper restaurant with Driss as his business partner. He is later shocked and hurt to learn that Fouad starts to remodel his business but without Driss. Sending out his friends as spies, Driss learns a number of unsettling things about his would-be associate.","popularity":0.637,"poster_path":null,"release_date":"2001-01-01","title":"Beach Café","video":false,"vote_average":5.0,"vote_count":2,"character":"Abdelsam","credit_id":"63ae47805ad76b00ae8fbf9d","order":7,"media_type":"movie"}],"crew":[]}}

/home/movtv/public_html/app/Core/Tmdb/TmdbClient.php:108

                                    
96
        'Content-Type' => 'application/json;charset=utf-8',
97
        'Authorization' => sprintf('Bearer %s'Configurator::$instance->get('tmdb'))
98
    ];
99
100
    // Append language preference to headers to avoid adult content
101
    $headers['Accept-Language'] = 'en-US'// Example: Set language preference to English
102
103
    // Make the GET request with headers
104
    $resp EasyCurl::setHeaders($headers)->get(...$args);
105
106
    // Check if response status is not 200 OK
107
    if ($resp->getStatus() != 200) {
108
        throw new TmdbClientException('Tmdb Client Error: ' $resp->getBody(), $resp->getStatus());
109
    }
110
111
    // Check for adult content in response (assuming TMDB API supports such filtering)
112
    $jsonResponse json_decode($resp->getBody(), true);
113
    
114
115
    return $resp;
116
}
117
118
119
    public function getGenre(): array
120
    {
121
        return $this->request('genre/' $this->getType() . '/list')['genres'] ?? [];