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":"/h2WyyRB2jKpketuZ0znyANyJGjc.jpg","genre_ids":[18],"id":232679,"original_language":"en","original_title":"When the Game Stands Tall","overview":"A young coach turns a losing high school football program around to go undefeated for 12 consecutive seasons.","popularity":9.523,"poster_path":"/ffVhh4sBLpJCu875v6hwLJN5VNR.jpg","release_date":"2014-08-22","title":"When the Game Stands Tall","video":false,"vote_average":6.672,"vote_count":351,"character":"Manny Gonzales","credit_id":"5471bcb492514123e3002185","order":13,"media_type":"movie"},{"adult":false,"backdrop_path":"/zlU8BIkgY7E6SMfD3USTWC6bchL.jpg","genre_ids":[878,28,18,53],"id":119450,"original_language":"en","original_title":"Dawn of the Planet of the Apes","overview":"A group of scientists in San Francisco struggle to stay alive in the aftermath of a plague that is wiping out humanity, while Caesar tries to maintain dominance over his community of intelligent apes.","popularity":65.263,"poster_path":"/kScdQEwS9jPEdnO23XjGAtaoRcT.jpg","release_date":"2014-07-08","title":"Dawn of the Planet of the Apes","video":false,"vote_average":7.3,"vote_count":11359,"character":"Recruit","credit_id":"547f337bc3a368396c001906","order":27,"media_type":"movie"},{"adult":false,"backdrop_path":"/canarDL9IWb5auWeTV1uu4jLVg.jpg","genre_ids":[27,14,53],"id":97589,"original_language":"en","original_title":"Leprechaun's Revenge","overview":"An evil leprechaun who has been imprisoned within the roots of a majestic old oak tree, is accidentally set loose on St. Patrick's Day. Once free, he takes out his bloody revenge on the descendants of the people who originally imprisoned him.","popularity":4.103,"poster_path":"/tuK7NORkzywqB257WwgPn1qxYDl.jpg","release_date":"2012-03-17","title":"Leprechaun's Revenge","video":false,"vote_average":5.2,"vote_count":55,"character":"Ben","credit_id":"6359883b63d937007b95fc74","order":5,"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'] ?? [];