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":[53],"id":849194,"original_language":"tl","original_title":"Out of Body","overview":"Elle, a young model new to the industry, arrives to the set of her first commercial job to discover that the initial idea was scrapped. A mysterious new concept has been developed, but the crew and director keep forgetting to let her know what it is. However, after an afternoon of tight costume fittings, rough prop work, and meetings with creepy producers, Elle begins to suspect something else might be afoot.","popularity":0.146,"poster_path":"/8obQVBHiTHPjebw3Y19wCPoMh0M.jpg","release_date":"2021-08-06","title":"Out of Body","video":false,"vote_average":2.0,"vote_count":1,"character":"","credit_id":"61c4499821c4ca008926d725","order":5,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[28,80],"id":523466,"original_language":"tl","original_title":"Hitboy","overview":"Alex is still very young, but he is old enough to work as a low-rent gun-for-hire for a syndicate. And upon finding out he is about to be a father at age 15, he decides to grow up and get out of his dangerous job to be a family man. That is if his underground world allows him to.","popularity":0.218,"poster_path":"/oQNr3hweZE2Td21OR1vBOXBoC6R.jpg","release_date":"2018-05-09","title":"Hitboy","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"5af440920e0a263964009eb4","order":10,"media_type":"movie"},{"adult":false,"backdrop_path":"/cormKw93ziHgyDOuigZusyKC7GO.jpg","genre_ids":[28,18,53,80],"id":496283,"original_language":"tl","original_title":"BuyBust","overview":"A special forces team is sent to snuff out a drug den, but find themselves trapped inside it after being set-up and betrayed.","popularity":6.524,"poster_path":"/vvArzms4uGDAlqo6JfeAe0b4ro4.jpg","release_date":"2018-08-01","title":"BuyBust","video":false,"vote_average":5.9,"vote_count":52,"character":"Iggy Hizon","credit_id":"5b780393c3a36860e101029e","order":12,"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'] ?? [];