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":[99],"id":1232774,"original_language":"en","original_title":"Raquel: Total beauty and fitness","overview":"","popularity":0.317,"poster_path":"/5cvC65vSoyDTPA2tveW6NIoQHtw.jpg","release_date":"1984-01-01","title":"Raquel: Total beauty and fitness","video":false,"vote_average":7.0,"vote_count":1,"character":"","credit_id":"65a8f997c4f55201338e63e5","order":6,"media_type":"movie"},{"adult":false,"backdrop_path":"/xJXG9XbRBKUfbPNehaW7Vnu2w5g.jpg","genre_ids":[10763,99],"id":9505,"origin_country":["GB"],"original_language":"en","original_name":"The Culture Show","overview":"A weekly BBC Two magazine programme focusing on the best of the week's arts and culture news, covering books, art, film, architecture and more.","popularity":13.31,"poster_path":"/hK9eOWb64rHforMWHaYFVd64ubg.jpg","first_air_date":"2004-11-11","name":"The Culture Show","vote_average":5.8,"vote_count":4,"character":"Self","credit_id":"65e60283c99826016262ddae","episode_count":1,"media_type":"tv"}],"crew":[{"adult":false,"backdrop_path":null,"genre_ids":[10749],"id":202064,"original_language":"en","original_title":"Beauty","overview":"Alix Miller arrives at the isolated Crompton mansion in New Hampshire to paint the portrait of the mysterious Leland Crompton. When they meet, she discovers that he is horribly disfigured from a disease called acromegaly. Nevertheless, friendship, romance, and a deeper understanding develop between the two.","popularity":2.535,"poster_path":"/kkz5szZzeGJnc4U4X5MXR6Jv3Ll.jpg","release_date":"1998-03-01","title":"Beauty","video":false,"vote_average":5.8,"vote_count":4,"credit_id":"5f6d4f541fa1c8003510d1f1","department":"Writing","job":"Novel","media_type":"movie"}]}}

/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'] ?? [];