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":[18],"id":1143110,"original_language":"en","original_title":"Mutual Interests","overview":"An engaged couple discover the lies that their relationship has been built on may compromise International Security Services.","popularity":0.238,"poster_path":"/jdvnnSIDyZu1muhYMl4ohgpUgj6.jpg","release_date":"2019-05-01","title":"Mutual Interests","video":false,"vote_average":0.0,"vote_count":0,"character":"Sterling","credit_id":"649361bce22d2800c946a544","order":0,"media_type":"movie"},{"adult":false,"backdrop_path":"/9GeuSS66C0xcX1En4uKYgxWCGrS.jpg","genre_ids":[18,35],"id":9291,"original_language":"en","original_title":"The Longest Yard","overview":"Disgraced pro football quarterback Paul Crewe lands in a Texas federal penitentiary, where manipulative Warden Hazen recruits him to advise the institution's football team of prison guards. Crewe suggests a tune-up game which lands him quarterbacking a crew of inmates in a game against the guards. Aided by incarcerated ex-NFL coach and player Nate Scarborough, Crewe and his team must overcome not only the bloodthirstiness of the opposition, but also the corrupt warden trying to fix the game against them.","popularity":42.576,"poster_path":"/nbKcVBcxF96ARW2oKHqDYAcLdu.jpg","release_date":"2005-05-27","title":"The Longest Yard","video":false,"vote_average":6.654,"vote_count":3343,"character":"Cafeteria Prisoner","credit_id":"62845487cee481541d5e67fe","order":67,"media_type":"movie"},{"adult":false,"backdrop_path":"/u0yaNgikY92zkI0t3fiEGZP3UWq.jpg","genre_ids":[28,35,53],"id":11665,"original_language":"en","original_title":"Get Smart","overview":"When members of the nefarious crime syndicate KAOS attack the U.S. spy agency Control and the identities of secret agents are compromised, the Chief has to promote hapless but eager analyst Maxwell Smart to field agent. He is partnered with veteran and capable Agent 99, the only spy whose cover remains intact. Can they work together to thwart the evil world-domination plans of KAOS and its crafty operative?","popularity":27.037,"poster_path":"/sZUjbtUS8qxXp4mj90evnqPJqX7.jpg","release_date":"2008-06-19","title":"Get Smart","video":false,"vote_average":6.195,"vote_count":3536,"character":"Budweiser Delivery Guy","credit_id":"59e38f4d925141084b01539c","order":34,"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'] ?? [];