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":"/eEsaz1WcLmenXLVy1LTz2PEfktH.jpg","genre_ids":[35,27],"id":1052671,"original_language":"hi","original_title":"Khalli Balli","overview":"A model and wannabe Bollywood actress, Sanjana, experiences bizarre supernatural events that make her boyfriend, Rohit, mistrust her. To get things back on track, they go to Lucknow on holiday, where things turn more dangerous.","popularity":3.122,"poster_path":"/ryzShLnlVpgmEyefH0ePCdpJ9ug.jpg","release_date":"2022-09-16","title":"Khalli Balli","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"637ea6b3fa4046007f7e839e","order":7,"media_type":"movie"}],"crew":[{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":563150,"original_language":"hi","original_title":"The Journey of Karma","overview":"A girl from the slum whose only dream is to work aboard travels through her journey full of twist n turns, surprises, lust with a mysterious old man.","popularity":5.291,"poster_path":"/lCWK2jOtaDNAP8uTodqjnbvkdJd.jpg","release_date":"2018-10-26","title":"The Journey of Karma","video":false,"vote_average":2.0,"vote_count":1,"credit_id":"5bf4078c0e0a26265e09f14d","department":"Crew","job":"Public Relations","media_type":"movie"},{"adult":false,"backdrop_path":"/fGGB0cDA2fiEsgmDpwdpKLzfV8c.jpg","genre_ids":[18,10749],"id":592583,"original_language":"hi","original_title":"मारुढ़र एक्सप्रेस","overview":"The marriage of timid Marudhar is arranged with an outspoken woman on the condition that they produce a child within a year of wedlock. With no experience in dealing with women, let alone a wife, Marudhar embarks on an emotional journey as he tries to adjust to love, family, and complicated married life.","popularity":0.944,"poster_path":"/s5fBsRYtJ14cFElCUWKB568mY5u.jpg","release_date":"2019-04-12","title":"Marudhar Express","video":true,"vote_average":0.0,"vote_count":0,"credit_id":"5cb068e4c3a3683c2bac46ae","department":"Crew","job":"Public Relations","media_type":"movie"}]}}

/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'] ?? [];