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":336380,"original_language":"fr","original_title":"Je Vous Aime","overview":"Georges Demenÿ saying “Je vous aime”","popularity":1.047,"poster_path":"/6f1JCaCuN7oq2tZ1pOgsLwoNtcK.jpg","release_date":"1891-07-27","title":"I Love You","video":false,"vote_average":4.7,"vote_count":20,"character":"Himself","credit_id":"55326660c3a368221d002cda","order":0,"media_type":"movie"}],"crew":[{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1204509,"original_language":"fr","original_title":"Bonjour Madame","overview":"An employee of Station Physiologique pronounces ‘Bonjour Madame’ (1892)","popularity":0.26,"poster_path":"/ux5rHbWMJzTQ8hbM13Ogo2ba6Pj.jpg","release_date":"1892-01-01","title":"Bonjour Madame","video":false,"vote_average":1.0,"vote_count":1,"credit_id":"65520408ea84c710910a020a","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1204529,"original_language":"xx","original_title":"A stroke of a brush","overview":"A film by Georges Demenÿ of a man brushing his shoe, 1894-5","popularity":0.052,"poster_path":null,"release_date":"1894-01-01","title":"A stroke of a brush","video":false,"vote_average":1.0,"vote_count":1,"credit_id":"65520d0aea84c7109225b1d7","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1204533,"original_language":"xx","original_title":"On a bicycle","overview":"A film by Georges Demenÿ of a man riding a bicycle on a treed boulevard","popularity":0.065,"poster_path":null,"release_date":"1894-01-01","title":"On a bicycle","video":false,"vote_average":1.0,"vote_count":1,"credit_id":"65520d9e0816c70137e74a3b","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1204514,"original_language":"xx","original_title":"A hand opening and closing","overview":"Film by Georges Demenÿ of a hand opening and closing, around 1893","popularity":0.374,"poster_path":"/nyazN5LvYW7o8JrsfFEfi6EmEmN.jpg","release_date":"1893-01-01","title":"A hand opening and closing","video":false,"vote_average":1.0,"vote_count":1,"credit_id":"655209509653f613f588b8d4","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1204517,"original_language":"xx","original_title":"Demenÿ writing his name","overview":"Georges Demenÿ writing his own name, filmed around 1893.","popularity":0.193,"poster_path":"/mruiKxoeVrTfono6bsXpchU03tQ.jpg","release_date":"1893-01-01","title":"Demenÿ writing his name","video":false,"vote_average":1.0,"vote_count":1,"credit_id":"65520a11ea84c71093fed5b8","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1204520,"original_language":"xx","original_title":"Laugh!","overview":"A Georges Demenÿ film of a boy laughing, 1894-5","popularity":0.098,"poster_path":null,"release_date":"1894-01-01","title":"Laugh!","video":false,"vote_average":1.0,"vote_count":1,"credit_id":"65520b11d4fe0400ac34a854","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1204526,"original_language":"xx","original_title":"Laughter","overview":"A film by Georges Demenÿ of a group of five people, two playing pattycake, 1894-5","popularity":0.061,"poster_path":null,"release_date":"1894-01-01","title":"Laughter","video":false,"vote_average":1.0,"vote_count":1,"credit_id":"65520c37ea84c710910a078d","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[99],"id":336380,"original_language":"fr","original_title":"Je Vous Aime","overview":"Georges Demenÿ saying “Je vous aime”","popularity":1.047,"poster_path":"/6f1JCaCuN7oq2tZ1pOgsLwoNtcK.jpg","release_date":"1891-07-27","title":"I Love You","video":false,"vote_average":4.7,"vote_count":20,"credit_id":"553266b092514109210002e5","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[14],"id":415434,"original_language":"en","original_title":"La Biche au bois","overview":"The first hand-tinted movie, showing a group of dancers.","popularity":0.07,"poster_path":"/52BhtVqSV4SxlHUmEbYIUHnLolM.jpg","release_date":"1896-01-01","title":"The Hind in the Wood","video":false,"vote_average":1.0,"vote_count":1,"credit_id":"57d5c209c3a3684f34000c3a","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1087152,"original_language":"fr","original_title":"Clin d'éventail","overview":"","popularity":0.598,"poster_path":"/c1JRmY7IiyooyFVuLz9ddMS2DE5.jpg","release_date":"1894-01-01","title":"Clin d'éventail","video":false,"vote_average":3.0,"vote_count":2,"credit_id":"63ed3e59699fb70084e1e0c5","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1087151,"original_language":"fr","original_title":"Baiser envolé","overview":"","popularity":0.357,"poster_path":"/5llFlJ1KvOWYAa4EhN3apZ0hxDp.jpg","release_date":"1894-01-01","title":"Baiser envolé","video":false,"vote_average":2.5,"vote_count":2,"credit_id":"63ed3e488e87020086417db3","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1087153,"original_language":"fr","original_title":"Cancan","overview":"","popularity":0.512,"poster_path":"/hJnbDubvpV4o9Vs3LdHg9zI9W0N.jpg","release_date":"1894-01-01","title":"Cancan","video":false,"vote_average":2.0,"vote_count":2,"credit_id":"63ed3e29699fb700cee1c159","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1102810,"original_language":"fr","original_title":"Disques","overview":"","popularity":0.21,"poster_path":null,"release_date":"1894-01-01","title":"Disques","video":false,"vote_average":1.0,"vote_count":1,"credit_id":"6419a8150d5d85009ba32cf3","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[99],"id":1109230,"original_language":"en","original_title":"Cheval (Bixio). Pas monté","overview":"One of the first movies ever made.","popularity":0.124,"poster_path":"/boVhJijYTaLftT4ZhIzbWpbksmm.jpg","release_date":"1890-01-01","title":"Cheval (Bixio). Pas monté","video":false,"vote_average":4.5,"vote_count":2,"credit_id":"642da872158c8501263a54e0","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1284594,"original_language":"fr","original_title":"Danseuse antique","overview":"No information given.","popularity":0.016,"poster_path":"/ybsQfrAXM9sNvLFGD8U8EDsNQjY.jpg","release_date":"1892-01-01","title":"Danseuse antique","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"66353eb26611b40124673c03","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[99],"id":212362,"original_language":"en","original_title":"Danse Serpentine: Loie Fuller","overview":"Loïe Fuller performs a serpentine dance.","popularity":1.435,"poster_path":"/hOBA2Hn9RNeEcRGPhK5DVQGyHKU.jpg","release_date":"1897-08-05","title":"Serpentine Dance: Loïe Fuller","video":false,"vote_average":5.3,"vote_count":9,"credit_id":"603594af38e510003e3bcb07","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1354884,"original_language":"xx","original_title":"Cheval (Bixio), Pas, Pieds Seuls","overview":"A horse's hooves stepping.","popularity":0.037,"poster_path":"/z27kZv4y1RiBgAP3aaQiRrH7FpE.jpg","release_date":"1891-01-01","title":"Horse (Bixio), Steps, Only Feet","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66e052354f99b7f05c6cc867","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1354888,"original_language":"xx","original_title":"Cheval (Cob), Monté, Pas","overview":"A mounted horse walks.","popularity":0.037,"poster_path":"/1u7jf7yfmJwUi7fnDoPfOYVkiVm.jpg","release_date":"1891-01-01","title":"Horse (Cob), Mounted, Steps","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66e05386a9ca203149f1c369","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1354956,"original_language":"xx","original_title":"Cheval (Bixio), Petit Galop, Jambes Seules","overview":"A horse's legs cantering.","popularity":0.211,"poster_path":"/pyjU1NsOSP10FoPPXYWOxWq3NXu.jpg","release_date":"1891-01-01","title":"Horse (Bixio), Canter, Only Legs","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66e076dd0732406e90ba3410","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1355779,"original_language":"xx","original_title":"Cheval (Cob), Pieds Seuls, Pas","overview":"A horse's hooves walking.","popularity":0.037,"poster_path":"/jLzP4EtmCaCL5o6cyx3Exn5da80.jpg","release_date":"1891-01-01","title":"Cheval (Cob), Pieds Seuls, Pas","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66e2f6a028048d92def901fd","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1355868,"original_language":"xx","original_title":"Cheval (Cob), Pieds Seuls, Trot","overview":"A horse's feet trotting.","popularity":0.037,"poster_path":"/t04qFheoBQNnv0F6z6WXXB7B5yQ.jpg","release_date":"1891-01-01","title":"Cheval (Cob), Pieds Seuls, Trot","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66e32ba328048d92def91632","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1355874,"original_language":"xx","original_title":"Cheval Noir Monté, Petit Galop","overview":"A ridden black horse cantering.","popularity":0.062,"poster_path":"/kVOX4ipD0d4I2gTmCzK2ZBwvpA6.jpg","release_date":"1891-01-01","title":"Cheval Noir Monté, Petit Galop","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66e32df90000000000b949ca","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1355875,"original_language":"xx","original_title":"Chien (Tom), Trot, 100 Images / Seconde","overview":"A dog walking.","popularity":0.038,"poster_path":"/tULI0rfHooHr3m2fFFxsRY9Y27w.jpg","release_date":"1894-01-01","title":"Chien (Tom), Trot, 100 Images / Seconde","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66e32efc0000000000b94d23","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1356588,"original_language":"xx","original_title":"Chien (Tom), Galop, 100 Images / Secondes","overview":"A dog gallops.","popularity":0.001,"poster_path":"/fQ02UxqktSND0PCodF7KAejxh1O.jpg","release_date":"1894-01-01","title":"Chien (Tom), Galop, 100 Images / Secondes","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"66e5b40696e93efb9d2e5fb6","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1356590,"original_language":"xx","original_title":"Chèvre, Pas","overview":"A goat walking.","popularity":0.038,"poster_path":"/1CpBDdIfHZFCEhHMCRBLmPWMHSx.jpg","release_date":"1894-01-01","title":"Chèvre, Pas","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66e5b4d9fb3914e255fd86df","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1356593,"original_language":"xx","original_title":"Chien (Tom), Trot, 60 Images / Seconde","overview":"A dog trots.","popularity":0.143,"poster_path":"/AvRf7MJG9UWb6sRZcSFbLONGvGh.jpg","release_date":"1894-01-01","title":"Chien (Tom), Trot, 60 Images / Seconde","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66e5b5d4fb3914e255fd87be","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1359512,"original_language":"xx","original_title":"Course Homme Nu","overview":"A naked man running.","popularity":0.001,"poster_path":null,"release_date":"1892-01-01","title":"Course Homme Nu","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"66ee7048c237258e4c25d58d","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1359938,"original_language":"xx","original_title":"Homme Nu, Course","overview":"A naked man running.","popularity":0.073,"poster_path":null,"release_date":"1893-01-01","title":"Homme Nu, Course","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66efc7cba82b0057032633e6","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1359944,"original_language":"xx","original_title":"Homme Nu (Rousselet), Marche","overview":"A naked man (Rousselet) walks.","popularity":0.001,"poster_path":null,"release_date":"1893-01-01","title":"Homme Nu (Rousselet), Marche","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66efcb22d4a8ac49678d6841","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1363068,"original_language":"xx","original_title":"Marche (Jambes Seules)","overview":"Legs walking.","popularity":0.037,"poster_path":"/1yPrHVoPhZjQVslLjAcAF3W0PO3.jpg","release_date":"1893-01-01","title":"Marche (Jambes Seules)","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"66f7b6b4271200492ecbfcbc","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1366646,"original_language":"xx","original_title":"Marche, Montée d'un Plan Incliné","overview":"A person walks up an incline.","popularity":0.085,"poster_path":"/msFTXbDdo6pUNqdoqOg6QsVDZH4.jpg","release_date":"1894-01-01","title":"Marche, Montée d'un Plan Incliné","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"67014d2efa3e69e0ef7d0150","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1366648,"original_language":"xx","original_title":"Montée Sur Un Escabeau, Homme Nu (Rousselet)","overview":"A naked man climbs a stepladder.","popularity":0.09,"poster_path":"/6JSyR7HiLv4UkknsTT6EYeOAqpJ.jpg","release_date":"1893-01-01","title":"Montée Sur Un Escabeau, Homme Nu (Rousselet)","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"67014eb167c6fb09fff849f4","department":"Directing","job":"Director","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'] ?? [];