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":"/17yZ1T3lNc8ud80723vFyXwI1Iy.jpg","genre_ids":[18,878],"id":54320,"original_language":"en","original_title":"Love","overview":"After losing contact with Earth, Astronaut Lee Miller becomes stranded in orbit alone aboard the International Space Station. As time passes and life support systems dwindle, Lee battles to maintain his sanity - and simply stay alive. His world is a claustrophobic and lonely existence, until he makes a strange discovery aboard the ship.","popularity":12.536,"poster_path":"/AlhdDsLxSAb1a54rYLPb7CidAIX.jpg","release_date":"2011-02-02","title":"Love","video":false,"vote_average":5.451,"vote_count":193,"character":"Russian Astronaut Woman","credit_id":"52fe4896c3a36847f816f7fd","order":4,"media_type":"movie"},{"adult":false,"backdrop_path":"/5QV9uotDRFbeik7tkCcKo96yvWt.jpg","genre_ids":[28,53],"id":16392,"original_language":"en","original_title":"Redline","overview":"A gorgeous young automobile fanatic--and front to the hottest unsigned band on the West coast--finds herself caught up in illegal drag-racing competitions organized by exotic car fanatics","popularity":10.971,"poster_path":"/lE1XfidwJml7lNGi0D4KlB8uQFY.jpg","release_date":"2007-04-13","title":"Redline","video":false,"vote_average":5.1,"vote_count":148,"character":"Actress / Model","credit_id":"53022be392514121a4323bb2","order":9,"media_type":"movie"},{"adult":false,"backdrop_path":"/ecOT4U0ERLBY4qhre9CbY5FOyfW.jpg","genre_ids":[35],"id":79940,"original_language":"en","original_title":"Tim and Eric's Billion Dollar Movie","overview":"Two guys get a billion dollars to make a movie, only to watch their dream run off course.","popularity":9.15,"poster_path":"/wZg8UBntsaChxIfRjJKjoTsPMo1.jpg","release_date":"2012-03-02","title":"Tim and Eric's Billion Dollar Movie","video":false,"vote_average":5.5,"vote_count":128,"character":"Woman on Paris Street","credit_id":"53022b60c3a3685ce70746c3","order":13,"media_type":"movie"},{"adult":false,"backdrop_path":"/jZApcMwD0hPXpf64uEw0asHIYLn.jpg","genre_ids":[80,53],"id":298,"original_language":"en","original_title":"Ocean's Thirteen","overview":"Danny Ocean's team of criminals are back and composing a plan more personal than ever. When ruthless casino owner Willy Bank doublecrosses Reuben Tishkoff, causing a heart attack, Danny Ocean vows that he and his team will do anything to bring down Willy Bank along with everything he's got. Even if it means asking for help from an enemy.","popularity":21.863,"poster_path":"/pBsZs4zYUiUTemqbikTZ76iQRaU.jpg","release_date":"2007-06-05","title":"Ocean's Thirteen","video":false,"vote_average":6.726,"vote_count":6283,"character":"Cocktail Waitress (uncredited)","credit_id":"53022bbd92514161a207a27e","order":73,"media_type":"movie"},{"adult":false,"backdrop_path":"/q4ISn9yyC5OnLT9ESkExHjBuK8d.jpg","genre_ids":[18,53],"id":68734,"original_language":"en","original_title":"Argo","overview":"As the Iranian revolution reaches a boiling point, a CIA 'exfiltration' specialist concocts a risky plan to free six Americans who have found shelter at the home of the Canadian ambassador.","popularity":21.548,"poster_path":"/m5gPWFZFIp4UJFABgWyLkbXv8GX.jpg","release_date":"2012-10-11","title":"Argo","video":false,"vote_average":7.3,"vote_count":8220,"character":"Swissair Flight Attendant","credit_id":"5fdd3cbe97fdec0040b82dd2","order":109,"media_type":"movie"},{"adult":false,"backdrop_path":"/suL7cJdywRnTmsT1RNjE78iJTsG.jpg","genre_ids":[80,18,9648],"id":32895,"origin_country":["US","FR"],"original_language":"en","original_name":"Rizzoli \u0026 Isles","overview":"Perhaps their strikingly different personalities make the relationship between detective Jane Rizzoli and medical examiner Maura Isles so effective. Jane, the only female cop in Boston's homicide division, is tough, relentless and rarely lets her guard down, while the impeccably dressed Maura displays a sometimes icy temperament — she is, after all, more comfortable among the dead than the living. Together, the best friends have forged a quirky and supportive relationship; they drop the protective shield in each other's company, and combine their expertise to solve Boston's most complex cases.","popularity":195.902,"poster_path":"/qQgTIsI6iWv4jO3kM6tHWVsKIIM.jpg","first_air_date":"2010-07-12","name":"Rizzoli \u0026 Isles","vote_average":7.9,"vote_count":415,"character":"Petra","credit_id":"53022b31925141218c31385c","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/uqTCaYBoSLT9MAdyQ9tU6QyCZ3A.jpg","genre_ids":[35],"id":2710,"origin_country":["US"],"original_language":"en","original_name":"It's Always Sunny in Philadelphia","overview":"Four egocentric friends run a neighborhood Irish pub in Philadelphia and try to find their way through the adult world of work and relationships. Unfortunately, their warped views and precarious judgments often lead them to trouble, creating a myriad of uncomfortable situations that usually only get worse before they get better.","popularity":149.573,"poster_path":"/pRWO6ufqSNkWvPXDDQhBwPNSv4K.jpg","first_air_date":"2005-08-04","name":"It's Always Sunny in Philadelphia","vote_average":8.3,"vote_count":1075,"character":"Anya","credit_id":"53022a4c925141219830f9b3","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/8HOvcSLX6asdXGUb4B2Y0jRmbxo.jpg","genre_ids":[35],"id":51402,"origin_country":["US"],"original_language":"en","original_name":"Mixology","overview":"One bar. One night. Ten single people. Welcome to Mix, a high-end bar in Manhattan's trendy meatpacking district.  These are the exploits of singles, five guys and five girls, in search of love - all over the course of one night.","popularity":10.152,"poster_path":"/wqmf1BB7BiQKAr3WqYNEt9fEiWg.jpg","first_air_date":"2014-02-26","name":"Mixology","vote_average":6.2,"vote_count":25,"character":"Fab's Mom","credit_id":"6631974f99d5c3012c55dfa6","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'] ?? [];