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":"/2jQM91nr8qMWbGy4XKfpbuY9f0O.jpg","genre_ids":[53,27],"id":403130,"original_language":"en","original_title":"Intruder","overview":"During one of Oregon's most violent storms, a young cellist seeks solitude and comfort in the safety of her large apartment, but soon realizes she might not be home alone.","popularity":2.107,"poster_path":"/gtIaRLKndifNAe9WLoMg19QSmhz.jpg","release_date":"2016-06-24","title":"Intruder","video":false,"vote_average":3.6,"vote_count":33,"character":"Grace","credit_id":"5894b58192514170ff00018e","order":7,"media_type":"movie"},{"adult":false,"backdrop_path":"/kbFYiU57nqBvPTkvuDMMuQ68Esx.jpg","genre_ids":[9648,18,10765],"id":10494,"origin_country":["US"],"original_language":"en","original_name":"Nowhere Man","overview":"Thomas Veil is a documentary photographer who, in the course of one evening, seemingly has his whole existence erased...\n\nNowhere Man is an American television series that aired from 1995 to 1996 starring Bruce Greenwood. Created by Lawrence Hertzog, the series aired Monday nights on UPN. Despite critical acclaim, including TV Guide's label of \"The season's coolest hit,\" the show was cancelled after only one season.","popularity":15.703,"poster_path":"/bMQ0IDjUs7tLf9XefBQGZ7AkvpP.jpg","first_air_date":"1995-08-28","name":"Nowhere Man","vote_average":7.5,"vote_count":29,"character":"Nurse #1 (as Suzannah Mars)","credit_id":"6239fa850a517c007930b144","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/oS3nip9GGsx5A7vWp8A1cazqJlF.jpg","genre_ids":[18,9648,10765],"id":39351,"origin_country":["US"],"original_language":"en","original_name":"Grimm","overview":"After Portland homicide detective Nick Burkhardt discovers he's descended from an elite line of criminal profilers known as \"Grimms,\" he increasingly finds his responsibilities as a detective at odds with his new responsibilities as a Grimm.","popularity":262.214,"poster_path":"/iOptnt1QHi6bIHmOq6adnZTV0bU.jpg","first_air_date":"2011-10-28","name":"Grimm","vote_average":8.271,"vote_count":3198,"character":"Dr. Richet","credit_id":"5b5ad1cb9251412a9800a829","episode_count":2,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":35403,"origin_country":["US"],"original_language":"en","original_name":"The Fitzpatricks","overview":"The Fitzpatricks is an American drama series which ran on CBS during the 1977–78 season. The series aired from September 5th, 1977 to January 10th, 1978. This show lasted only thirteen episodes, and was cancelled in 1978.","popularity":17.269,"poster_path":"/hR1aRvFJrEYEPWt6bhMSqyIF5xV.jpg","first_air_date":"1977-09-05","name":"The Fitzpatricks","vote_average":5.0,"vote_count":1,"character":"Linda","credit_id":"65e5530eb7a15401867c8f44","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/pK22xswNJ02Hhfb9lRbXEjtXefP.jpg","genre_ids":[10759,18,35],"id":61599,"origin_country":["US"],"original_language":"en","original_name":"The Librarians","overview":"A group of librarians set off on adventures in an effort to save mysterious, ancient artifacts. Based on the series of \"The Librarian\" movies.","popularity":60.373,"poster_path":"/bHozq314oNsSZvomSPFIaGrw1Zx.jpg","first_air_date":"2014-12-07","name":"The Librarians","vote_average":7.265,"vote_count":458,"character":"Group Leader","credit_id":"5f7dfe73f90b190035c8686a","episode_count":1,"media_type":"tv"}],"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'] ?? [];