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":null,"genre_ids":[],"id":171327,"original_language":"en","original_title":"La niña de tus sueños","overview":"Film centred around a mother, Françoise, who is HIV positive and her young daughter Ana.","popularity":1.698,"poster_path":null,"release_date":"1995-05-27","title":"La niña de tus sueños","video":false,"vote_average":0.0,"vote_count":0,"character":"Javi","credit_id":"52fe4d09c3a36847f824b237","order":4,"media_type":"movie"},{"adult":false,"backdrop_path":"/cYcx91LgbFqG5BhRcVwJeR4wAeI.jpg","genre_ids":[18],"id":33504,"original_language":"es","original_title":"El Bola","overview":"El Bola is a 12-year-old boy raised in a violent and sordid environment. Embarrassed by his family life, he avoids becoming close to classmates. The arrival of a new boy at school changes his attitude towards his classmates and friendship. The heart of the story is the change in El Bola's life, at almost all levels, after befriending this new classmate.","popularity":8.215,"poster_path":"/i51PMyfiomYL9dw9zcHc3Z7BpjZ.jpg","release_date":"2000-10-20","title":"Pellet","video":false,"vote_average":7.2,"vote_count":147,"character":"Chaval 2 (as Adrian Gil Rausch)","credit_id":"56e7370c92514167460001ee","order":16,"media_type":"movie"},{"adult":false,"backdrop_path":"/q0FErtC8WpqQWeXEZcGJkrv24Zk.jpg","genre_ids":[35],"id":113807,"original_language":"es","original_title":"Mamá es boba","overview":"Palencia, Spain, late 1990s. While Gema and Toribio, who live in their own cloud of precarious happiness, always smile stupidly as if they have to apologize for something they have not actually done, their little son Martín suffers, every day at school, an unbearable ordeal, tragic but also comical, that they, a peer of daydreaming simpletons, are unaware of.","popularity":0.794,"poster_path":"/jkzvL5G3XKDcDZToV3nYkgU7dco.jpg","release_date":"1997-01-31","title":"Mamá es boba","video":false,"vote_average":4.0,"vote_count":2,"character":"Akier Beristiain","credit_id":"5cc9fe98c3a3687425821a60","order":10,"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'] ?? [];