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":[18],"id":121615,"origin_country":["CN"],"original_language":"zh","original_name":"御花子","overview":"","popularity":7.668,"poster_path":"/sDz3a3bIdyauY8ysI7BDhTxYBDf.jpg","first_air_date":"1997-01-01","name":"御花子","vote_average":0.0,"vote_count":0,"character":"坠儿","credit_id":"65f3fd3fa313b800e42604e7","episode_count":26,"media_type":"tv"},{"adult":false,"backdrop_path":"/wrjHvure9UtVFwkDuIlq0ZkP6tY.jpg","genre_ids":[10759,18],"id":13923,"origin_country":["CN"],"original_language":"zh","original_name":"西游记","overview":"Journey to the West is a Chinese television series adapted from the classical novel of the same title. The series was first broadcast on CCTV in China on 1 October 1986. The series became an instant classic in China and is still being praised as the best and most authentic interpretation of the novel. Unadapted portions of the original story were later covered in the second season, which was released in 1999.","popularity":45.48,"poster_path":"/bAl4rX85qVbGeVslvQqFRDHsQ6X.jpg","first_air_date":"1986-02-09","name":"Journey to the West","vote_average":8.4,"vote_count":51,"character":"朱丽亚","credit_id":"65f3f7aea698cf0149f5a3c8","episode_count":2,"media_type":"tv"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":121897,"origin_country":["CN"],"original_language":"zh","original_name":"半个月亮","overview":"","popularity":7.439,"poster_path":"/A3Bp6A9L2FRULUdYkzO71ILZTvv.jpg","first_air_date":"2004-01-01","name":"半个月亮","vote_average":0.0,"vote_count":0,"character":"唐玲","credit_id":"65f40302a313b8018527726e","episode_count":20,"media_type":"tv"},{"adult":false,"backdrop_path":"/2BCwc1WxBXYna2kl4hNUaUOaWVE.jpg","genre_ids":[18],"id":249080,"origin_country":["CN"],"original_language":"zh","original_name":"杨三姐告状","overview":"","popularity":13.813,"poster_path":"/ili29i4kpUcqWjRyiIaOnslZJsU.jpg","first_air_date":"2007-03-17","name":"杨三姐告状","vote_average":0.0,"vote_count":0,"character":"金玉","credit_id":"65f40b4a24f2ce00c815a4af","episode_count":32,"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'] ?? [];