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":"/8B8mdhvEy6mnu1whpLbd6ASoOOl.jpg","genre_ids":[10749,18],"id":93685,"original_language":"nl","original_title":"Swingers","overview":"Despite Diana's insecure nature, she and her husband Julian agree with the idea to sexually experiment with another couple. They put out an ad on the net to which the well experienced Alex and Timo react. We follow Diana and Julian as they prepare for the arrival of Alex and Timo, who they have invited to their home for the weekend. Diana is nervous. As soon as she is confronted with the self-confident and ravishingly sexy Alex, her insecurity increases even more. Timo seems disinterested, a sharp contrast to the boyish excitement of Julian. But as night falls and their sexual exploration begins, we notice Timo may not be as casual as he initially seemed and Diana on the other hand contains hidden strength. And so we realize there's more to 'Swingers' than just sex. Swingers: could your relationship stand the test?","popularity":26.352,"poster_path":"/vsctdCbDHApN003Fs3QzJB8Nl9B.jpg","release_date":"2002-10-01","title":"Swingers","video":false,"vote_average":5.9,"vote_count":55,"character":"Julian","credit_id":"52fe49399251416c750c157b","order":2,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1218025,"original_language":"nl","original_title":"ALMANAK, vrouwen om van te houden","overview":"","popularity":1.046,"poster_path":"/bU9u7uOIiyvgg1LZeeKu7p643W1.jpg","release_date":"2024-03-07","title":"ALMANAK, vrouwen om van te houden","video":false,"vote_average":0.0,"vote_count":0,"character":"Wessel","credit_id":"657b8072564ec700c4753945","order":15,"media_type":"movie"},{"adult":false,"backdrop_path":"/jBcuZWQy1ai9gWuNCEnJ5ukcR2Q.jpg","genre_ids":[18],"id":22321,"origin_country":["NL"],"original_language":"nl","original_name":"Fort Alpha","overview":"","popularity":2.02,"poster_path":"/pNhGtdSWfHjEsjyBISccDcy8gfn.jpg","first_air_date":"1996-01-04","name":"Fort Alpha","vote_average":8.0,"vote_count":3,"character":"","credit_id":"52586e4b760ee346611f2416","episode_count":20,"media_type":"tv"},{"adult":false,"backdrop_path":"/p93tHzRqVW0OR1dKDlT33Li51AZ.jpg","genre_ids":[18],"id":26709,"origin_country":["NL"],"original_language":"nl","original_name":"Keyzer en de Boer Advocaten","overview":"","popularity":9.95,"poster_path":"/5u8nHzx9kmo7icQLgtKUkvGWhBj.jpg","first_air_date":"2005-10-10","name":"Keyzer en de Boer Advocaten","vote_average":8.0,"vote_count":1,"character":"Klaas","credit_id":"52588122760ee3466139ec96","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/8Eksp4wxVT0WpFGqgeuHIf57sRT.jpg","genre_ids":[35],"id":66630,"origin_country":["NL"],"original_language":"nl","original_name":"Oppassen!!!","overview":"Sitcom about two grandfathers taking care of their grandchildren, so their children can focus on their careers.","popularity":33.95,"poster_path":"/8Zg7uFytp09a4rCK7GrxHLTMguk.jpg","first_air_date":"1991-03-09","name":"Oppassen!!!","vote_average":7.0,"vote_count":3,"character":"Inbreker","credit_id":"641dc404befb09007bfef7b1","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":36710,"origin_country":["NL"],"original_language":"en","original_name":"Missie Warmoesstraat","overview":"","popularity":1.969,"poster_path":null,"first_air_date":"2004-01-03","name":"Missie Warmoesstraat","vote_average":0.0,"vote_count":0,"character":"","credit_id":"5258e5db760ee3466181cbff","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":37429,"origin_country":["NL"],"original_language":"en","original_name":"Bureau Kruislaan","overview":"","popularity":2.422,"poster_path":"/2YrjIwTVMu7oyfPrGvhhHrqdgRR.jpg","first_air_date":"1992-10-08","name":"Bureau Kruislaan","vote_average":7.5,"vote_count":2,"character":"","credit_id":"5258e8f5760ee3466186a36b","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":25958,"origin_country":["NL"],"original_language":"nl","original_name":"Costa!","overview":"","popularity":17.186,"poster_path":"/lKdUKpSr3hE6KeRJ3vlrk4Eyqbi.jpg","first_air_date":"2001-10-01","name":"Costa!","vote_average":6.3,"vote_count":3,"character":"Frank","credit_id":"5b04291892514109c902da54","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/626YC7vcJtbVRLfrPiLuJMNOG0C.jpg","genre_ids":[18,10762],"id":26611,"origin_country":["NL"],"original_language":"nl","original_name":"Dunya \u0026 Desie","overview":"","popularity":10.269,"poster_path":"/AwaoRT1b6YiNAGjy3uNnZcDPWSe.jpg","first_air_date":"2002-09-18","name":"Dunya \u0026 Desie","vote_average":7.5,"vote_count":2,"character":"Bouwvakker","credit_id":"66477da1b7786825aa6301f5","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'] ?? [];