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":[],"id":1154062,"original_language":"en","original_title":"Abiding","overview":"A mobster must save his family from paying the ultimate price for his sins when a killer from his past is on a sworn mission to wipe each one of them out.","popularity":0.379,"poster_path":"/kBlnZduUF6nxqe2lrOiWpi9eAVB.jpg","release_date":"2022-08-13","title":"Abiding","video":false,"vote_average":0.0,"vote_count":0,"character":"Cellular Phone Assistant","credit_id":"64b84a00bbcae0013eda1405","order":13,"media_type":"movie"},{"adult":false,"backdrop_path":"/77haG1Gy3A6T4t1pAQTiVY8pgWJ.jpg","genre_ids":[80,18],"id":153657,"origin_country":["US"],"original_language":"en","original_name":"Bosch: Legacy","overview":"Bosch is now making a living as a private investigator two years after he quit the LAPD and finds himself working with one time enemy and top-notch attorney Honey “Money” Chandler. Meanwhile, Bosch's daughter Maddie is venturing into the world of the LAPD.","popularity":44.241,"poster_path":"/jaBQkpjXw0wtbAFLJ23SKFc6fa8.jpg","first_air_date":"2022-05-05","name":"Bosch: Legacy","vote_average":7.974,"vote_count":154,"character":"Peter Nguyen","credit_id":"653ac865109cd000c946b34e","episode_count":2,"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'] ?? [];