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":"/h3RUnNeAsH0gYlEDhH5bVvwoJNQ.jpg","genre_ids":[35,10751],"id":762469,"original_language":"en","original_title":"Father Christmas Is Back","overview":"Four sisters – Caroline, Joanna, Paulina, and Vicky – reunite for the Christmas Holiday in a Yorkshire mansion. However, their estranged father, James, joins in for the first time since he left the family behind decades prior. The group attempts to get through the holiday despite comedic misunderstandings, while also uncovering the long-buried secret that tore their family apart, so many years ago.","popularity":18.206,"poster_path":"/mI6mFCO3lrJ4ovzwfmoLs58uhlK.jpg","release_date":"2021-11-07","title":"Father Christmas Is Back","video":false,"vote_average":4.6,"vote_count":154,"character":"Gerald","credit_id":"61bd8c17945d36004332f2d5","order":14,"media_type":"movie"},{"adult":false,"backdrop_path":"/cuBzsEv9i37JSmkvhNrQoFRepPi.jpg","genre_ids":[9648,80],"id":734442,"original_language":"en","original_title":"Miss Willoughby and the Haunted Bookshop","overview":"Miss Willoughby is an educator and keen adventurer, an heiress to a family fortune who, along with her ex-forces butler, Robert, and cheeky but reliable Jack Russell, Bentley, gets pulled into mystery and adventure surrounding a haunted antique bookshop.","popularity":5.319,"poster_path":"/bKozWiIzy5J3C3cTmBOgA6m8EEb.jpg","release_date":"2022-03-06","title":"Miss Willoughby and the Haunted Bookshop","video":false,"vote_average":4.813,"vote_count":16,"character":"Roland's Ghost","credit_id":"62386a9fdb4ed60073bffacd","order":15,"media_type":"movie"},{"adult":false,"backdrop_path":"/rFDUe6c1V3ASUGOyj3YGPCWLMQ6.jpg","genre_ids":[27,14],"id":1007205,"original_language":"en","original_title":"York Witches Society","overview":"After initiation into the prestigious York Witches Society, Amber Gray and her new friends unwittingly awaken an ancient evil hellbent on destroying the Gray bloodline. As the witch hunt begins, the women realize they may not make it through the night.","popularity":2.472,"poster_path":"/8vyaZsMiGQZZebpaNzemAGXVHVX.jpg","release_date":"2022-08-26","title":"York Witches Society","video":false,"vote_average":5.0,"vote_count":4,"character":"Elderly Porter","credit_id":"66a3d2b4027cefa51e1b3d50","order":13,"media_type":"movie"},{"adult":false,"backdrop_path":"/x9Jogr7lAtiAMyZH2sj6LECfeb6.jpg","genre_ids":[27,9648,53],"id":369300,"original_language":"en","original_title":"The Limehouse Golem","overview":"A series of murders has shaken the community to the point where people believe that only a legendary creature from dark times – the mythical Golem – must be responsible.","popularity":19.173,"poster_path":"/u9NnEq4Be7hhwSvkNf6dOAD8ppi.jpg","release_date":"2016-10-18","title":"The Limehouse Golem","video":false,"vote_average":6.216,"vote_count":633,"character":"Juror (uncredited)","credit_id":"5a201231c3a3680b8a08d0bb","order":49,"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'] ?? [];