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":"/82IkkcvXe205cCAAxyk14fkz44C.jpg","genre_ids":[16,878],"id":70665,"original_language":"en","original_title":"Flatland","overview":"Flatland is a two-dimensional universe occupied by living geometric figures - squares, triangles, circles, etc. A Square, Attorney At Law, finds himself in the middle of two upheavals: the rise of martial law by the circular leadership of Flatland, and the arrival of A Sphere, CEO Of Messiah, Incorporated, a creature from a hitherto-unknown third dimensional world.","popularity":1.406,"poster_path":"/ykD9CxWL35oVhcSm6Zw7h70SmKj.jpg","release_date":"2007-01-14","title":"Flatland","video":false,"vote_average":6.0,"vote_count":24,"character":"(voice)","credit_id":"582229c292514109c4001fb0","order":11,"media_type":"movie"},{"adult":false,"backdrop_path":"/t5t0tjbhY1ab2LE4S4rvql0Af1K.jpg","genre_ids":[18,9648],"id":15158,"origin_country":["AU"],"original_language":"en","original_name":"Halifax f.p.","overview":"Halifax f.p. is an Australian television crime series produced by Nine Network from 1994 to 2002. The series stars Rebecca Gibney as Doctor Jane Halifax, a forensic psychiatrist investigating cases involving the mental state of suspects or victims. The series is set in Melbourne.\n\nThe producers of the film were Beyond Simpson Le Mesurier; Australian Film Finance Corporation and aired on the Nine Network Australia Pty Ltd\n\n21 Episodes of 90 and 102 minutes each were produced, and the series has screened in more than 60 countries.\n\nThe budget for each episode was an average of $1.3 million. Funding came in part from the Australian Film Finance Corporation and Film Victoria.","popularity":19.423,"poster_path":"/rxXXLTmNTAk5r2AW5gmDI0Sy6gR.jpg","first_air_date":"1994-10-09","name":"Halifax f.p.","vote_average":6.2,"vote_count":7,"character":"Club Secretary","credit_id":"6072fd911da7a6003f12ed3a","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/aiFUTKGcLjCAJu2XDxs1uKzT0B1.jpg","genre_ids":[80,18],"id":13612,"origin_country":["AU"],"original_language":"en","original_name":"Phoenix","overview":"Phoenix is an Australian police drama television series. Phoenix screened as two thirteen-part series on Australian Broadcasting Corporation in 1992 and 1993.\n\nThe first series of Phoenix in 1992 recounted the investigation of the bombing of the Victorian state police headquarters, loosely based on a real case in the mid-1980s, the Russell Street Bombing. It was aided by extensive research into police techniques and was lauded as one of the most realistic depictions of police investigation techniques, including both surveillance and forensics, as well as having an involving storyline.\n\nThe series was notable for its dark visual tone and for its no-holds-barred attitude to violence and language.\n\nIt spawned a second thirteen-part series, Phoenix II, in 1993 as well as a spin-off series, Janus, in 1994 devoted to the machinations of court cases.\n\nThe series was created and produced by Tony McDonald and Alison Nisselle and screened by the Australian Broadcasting Corporation.\n\nThe ABC have released Series 1 and 2 on DVD as a 4 DVD box set.","popularity":12.428,"poster_path":"/oKhBq0tax6rW6pBTObP8Wp7Ta8x.jpg","first_air_date":"1992-02-13","name":"Phoenix","vote_average":7.0,"vote_count":2,"character":"Bank Manager","credit_id":"6261d29f7fcab331cc1dd6cc","episode_count":1,"media_type":"tv"},{"adult":false,"backdrop_path":"/v24AJ7GZULrdDx9nRTezaxUOEuG.jpg","genre_ids":[18],"id":2233,"origin_country":["AU"],"original_language":"en","original_name":"Blue Heelers","overview":"Blue Heelers was one of Australia's longest running weekly television drama series. Blue Heelers is a police drama series set in the fictional country town of Mount Thomas. Under the watchful eye of Tom Croydon (John Wood), the men and women of Mount Thomas Police Station fight crime, resolve disputes and tackle the social issues of the day. We watch their successes and their failures and learn to grow with them and their loved ones as the heart of the series develops.","popularity":71.586,"poster_path":"/dxCyxmFSHiAonsb94s1QScyHBAk.jpg","first_air_date":"1993-09-10","name":"Blue Heelers","vote_average":6.6,"vote_count":13,"character":"Tibor Kerenyi","credit_id":"626af9c6394a870069fbcec5","episode_count":2,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":26384,"origin_country":["AU"],"original_language":"en","original_name":"Snowy","overview":"The family lives of those working on Australia's Snowy Mountains dam in the 1950s.","popularity":6.571,"poster_path":"/my3XEomPIvhtPlo1uGC33jtCZWr.jpg","first_air_date":"1993-09-08","name":"Snowy","vote_average":0.0,"vote_count":0,"character":"Governor General","credit_id":"634b20a81b1f3c0079e7770c","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'] ?? [];