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":"/sbYa8rmKW9kpPlx8vzCemitcBjO.jpg","genre_ids":[28],"id":1030131,"original_language":"zh","original_title":"七剑降魔传","overview":"In the past, the ancient divine beast Qilin forged seven swords, including Xuanyuan and Chengying, and inspired seven practitioners in the world to become the heirs of the Seven Swords. At the same time, a snake demon in Changshou City who has practiced for thousands of years, in order to increase his cultivation, mutilates living beings. The Descendants of the Seven Swords, adhering to the duty of guarding the peace of the world, fought the snake demon on the Black Devil Cliff and sealed it.","popularity":2.308,"poster_path":"/o3nLBNP7X68k2UbAtS5eRILgzIV.jpg","release_date":"2022-09-29","title":"Seven Swords","video":false,"vote_average":1.0,"vote_count":1,"character":"七绝","credit_id":"664100b9fb1a01901cff5180","order":5,"media_type":"movie"},{"adult":false,"backdrop_path":"/qcgOaUMWgWuHD1QbbzH4miXI60b.jpg","genre_ids":[18],"id":132701,"origin_country":["CN"],"original_language":"zh","original_name":"小主别闹","overview":"","popularity":13.359,"poster_path":"/vMRtTGJEdeVzZJiPFDIswWsTNuw.jpg","first_air_date":"2021-08-29","name":"Naughty Princess","vote_average":8.0,"vote_count":2,"character":"Rui Zhu","credit_id":"6640fce4b3fd28ce22c10774","episode_count":24,"media_type":"tv"},{"adult":false,"backdrop_path":"/3gK9XMD57sPrGLX70YnPwobyQym.jpg","genre_ids":[9648],"id":221570,"origin_country":["CN"],"original_language":"zh","original_name":"民国女神探","overview":"The police chief, Detective Ding, and a wealthy local businessman, Feng Da Tou, collaborate with a foreigner and traitor to sell opium for their own selfish interests. A female detective, Huo Qing, arrives in Pujiang Town with her assistant, Yan Er, and has many misunderstandings with the deputy police chief, Xing Yi, as they investigate a case.","popularity":8.148,"poster_path":"/yoTJPZnHc6eMVujaIxlJ5Uqbzhm.jpg","first_air_date":"2023-02-28","name":"Pro Detective","vote_average":0.0,"vote_count":0,"character":"Huo Qing","credit_id":"67218da247fe097c193f87bd","episode_count":12,"media_type":"tv"},{"adult":false,"backdrop_path":"/gL5J9E8WvWmlvNi17yEIKO2Nf9D.jpg","genre_ids":[18],"id":244910,"origin_country":["CN"],"original_language":"zh","original_name":"魔镜:致命前任","overview":"After seven years of love with her boyfriend, Wen Liang, Jiang Yi Jing accidentally found him cheating with his business partner, Xiao Mi La. Hitting rock bottom, she discovered her consciousness is mysteriously transported into Xiao Mi La’s body through a mirror. Thus begins a tale of revenge of soul manipulation!","popularity":1.872,"poster_path":"/mQOUdpx5lP7054y3TxsH11VuAJR.jpg","first_air_date":"2024-01-22","name":"Mirror of Revenge","vote_average":0.0,"vote_count":0,"character":"Jiang Yijing","credit_id":"67218fe1d9a8a77b5da4325d","episode_count":20,"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'] ?? [];