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":"/8qphDloxwqGe38MBYz64Md4WtdA.jpg","genre_ids":[18,10751],"id":725120,"original_language":"en","original_title":"Baby","overview":"A young Black father must learn to navigate parenthood after his girlfriend mysteriously abandons him and their five-year-old daughter.","popularity":1.261,"poster_path":"/vO53tF5svz1i9vJtvMaYOEHgf8t.jpg","release_date":"2021-12-31","title":"Baby","video":false,"vote_average":0.0,"vote_count":0,"character":"Ricky","credit_id":"600fb5a846f3540041b44127","order":7,"media_type":"movie"}],"crew":[{"adult":false,"backdrop_path":"/m5G2iMzzxDygPHkzNRAV20DggsZ.jpg","genre_ids":[18,10749,35],"id":1274047,"original_language":"en","original_title":"Albany Road","overview":"On her way to the most important meeting of her career, severe weather forces a New York executive to share a rental car with her former nemesis, her ex-fiancé's mother, only to discover that the mother is hiding a major secret.","popularity":5.077,"poster_path":"/3kPiE2X1neiHDcAXEzCKK3fQJD6.jpg","release_date":"2024-11-15","title":"Albany Road","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"670a201737d86d520bb0575d","department":"Sound","job":"Original Music Composer","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'] ?? [];