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":"/p9FPWgzzsM4AyztzbQa618hcwyZ.jpg","genre_ids":[878,27,28,12],"id":505860,"original_language":"en","original_title":"The Outer Wild","overview":"After an unnatural event leaves mankind nearly extinct, a runaway girl and a rogue bounty hunter brave a dangerous wilderness to find a fabled sanctuary that can either save or destroy what's left of humanity.","popularity":1.303,"poster_path":"/xvzoBJl5pnWgQ8wjREZpWEeaHdS.jpg","release_date":"2018-09-28","title":"The Outer Wild","video":false,"vote_average":5.0,"vote_count":10,"character":"The Monsters","credit_id":"5bbf27bac3a3682b3601052e","order":13,"media_type":"movie"}],"crew":[{"adult":false,"backdrop_path":null,"genre_ids":[35],"id":540703,"original_language":"en","original_title":"The Haint","overview":"Troy MInk plays 13 different characters in the mythical haunted town of Midway, Tennessee.","popularity":0.001,"poster_path":null,"release_date":"","title":"The Haint","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"5b6787b4c3a36818990a553b","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35],"id":665350,"original_language":"en","original_title":"Straight","overview":"Straight is a hilarious and subversive excursion into the world of conversion therapy, where homosexuals are reputedly made \"straight.\" Join acclaimed writer/performer David Schmader as he plunges into the heart of this dangerous territory. Schmader, a gay man, pulls no punches with either the conversionists or the gay community in this one-man show.","popularity":1.008,"poster_path":null,"release_date":"2008-09-02","title":"Straight","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"5e2553ccbfeb8b0013d55c1a","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":754482,"original_language":"en","original_title":"Straight: A Conversion Comedy","overview":"Straight is a hilarious and subversive excursion into the world of conversion therapy, where homosexuals are reputedly made straight. Join acclaimed writer/performer David Schmader as he plunges into the heart of this dangerous territory. Schmader, a gay man, pulls no punches with either the conversionists or the gay community in this one-man show.","popularity":0.001,"poster_path":"/mFGd2rmCx33Ye51lOmBszdZ8i6Y.jpg","release_date":"2002-10-10","title":"Straight: A Conversion Comedy","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"5f8b8e4f90fca30035086782","department":"Directing","job":"Director","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'] ?? [];