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":[],"id":936646,"original_language":"ja","original_title":"SOAPのMOKOちゃん","overview":"A live action adaptation of the manga starring the popular AV actresses Mirei Asaoka and Mayo Takagi!","popularity":0.636,"poster_path":"/z3kPi1nEOoFMCx5b7ewqB9khE1N.jpg","release_date":"1992-05-15","title":"Soap No Moko-Chan","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"6203d3a7ea37e000d38424fa","order":2,"media_type":"movie"},{"adult":true,"backdrop_path":null,"genre_ids":[],"id":1177860,"original_language":"ja","original_title":"コスプレ 野原りん","overview":"","popularity":0.0,"poster_path":"/lsLhMqbeCJZHE7BqMUJYSpfnobi.jpg","release_date":"2003-08-01","title":"Cosplay Rin Nohara","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"65021cbe7a97ab00e4ba2433","order":2,"media_type":"movie"},{"adult":false,"backdrop_path":"/h9NxeTsMPAA85XzD24ztiyetfKK.jpg","genre_ids":[99],"id":239389,"original_language":"ja","original_title":"YOYOCHU SEXと代々木忠の世界","overview":"\"Yoyochu\" is the nick name for Tadashi Yoyogi. He is the father of Japanese adult video. Before becoming a pornographer, he was a flower arranger and a member of the mob. Here, we follow Tadashi Yoyogi as he seeks the truth behind love-making. ~ Baseline StudioSystems","popularity":4.175,"poster_path":"/ududEcyh33HrqsZWFaV2qrE3ull.jpg","release_date":"2011-01-22","title":"YOYOCHU in the Land of the Rising Sex","video":false,"vote_average":8.0,"vote_count":1,"character":"Himself","credit_id":"52fe4e92c3a36847f829964f","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":"/aYK8ZPwAGdNT6XKcBU46jRdlcgB.jpg","genre_ids":[18],"id":319299,"original_language":"ja","original_title":"ラ・ヴァルス","overview":"A rape incident has occurred. The victim was a woman named Yumiko Kawamura, a dental hygienist. However, the statements of the victim Yumiko and the suspect Saburo Kubo were completely incompatible. Adachi, a national lawyer who took on the defense of the suspect, will begin a personal investigation of Yumiko to find out the truth of the case.","popularity":2.214,"poster_path":"/FqsgD9hqBg5n9Aow4cT4OZtEnk.jpg","release_date":"1990-02-15","title":"La Valse","video":false,"vote_average":3.0,"vote_count":3,"character":"","credit_id":"5e87971e9974ee0015b1e6f3","order":19,"media_type":"movie"},{"adult":false,"backdrop_path":"/zTIU0zlpHGwi4A0LOZ0Heor1YiW.jpg","genre_ids":[99],"id":296989,"original_language":"ja","original_title":"セックスの向こう側 ~AV男優という生き方","overview":"A documentary that shines a spotlight on the unsung male performers who support the world of Japanese Adult Video, which has grown into a massive industry with annual sales of 55 billion yen in the 30 years since its inception. Its co-directors Enoki Yujiro and Takahara Hidekazu are JAV veterans who know the business back to front. 20 highly individual male adult video performers appear, from legendary virtuoso Kato Taka to handsome new generation star Kuroda Masatoshi. Through behind-the-scenes footage and interviews, it sheds light on their diverse views on life and women, their philosophies regarding sex, and their dedication to their profession.","popularity":9.893,"poster_path":"/xNzpGB2R5HSfFB25RYxfVkVeHZt.jpg","release_date":"2013-02-23","title":"The Other Side of The SEX","video":false,"vote_average":7.0,"vote_count":2,"character":"Self","credit_id":"5f5d84ff955c6500389790f2","order":10,"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'] ?? [];