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":1125137,"original_language":"en","original_title":"The Girl Next Door","overview":"A short film that was written for all of the teens that are struggling with their self esteem and questioning their sexuality.","popularity":0.337,"poster_path":"/iPlS796GValkl81AQtQftTG9SuE.jpg","release_date":"2023-05-25","title":"The Girl Next Door","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"645be9b21b70ae00e2ad9139","order":0,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[10749],"id":1275904,"original_language":"en","original_title":"Bulletin","overview":"Maren is just trying to make friends; Lucas keeps getting in the way. An accidental love story set in the 90s featuring beer, wood, and bean bag toss.","popularity":0.039,"poster_path":null,"release_date":"2023-04-15","title":"Bulletin","video":false,"vote_average":0.0,"vote_count":0,"character":"Bulletin Board Hands","credit_id":"66202e1521621b0164f11607","order":7,"media_type":"movie"}],"crew":[{"adult":false,"backdrop_path":null,"genre_ids":[35,12,27],"id":1275898,"original_language":"en","original_title":"Sleepover","overview":"When a Truth or Dare game goes terribly wrong, four young girls are forced to get creative.","popularity":0.137,"poster_path":null,"release_date":"2023-04-15","title":"Sleepover","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"66202ba3a6fdaa01636b4403","department":"Writing","job":"Writer","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35,12,27],"id":1275898,"original_language":"en","original_title":"Sleepover","overview":"When a Truth or Dare game goes terribly wrong, four young girls are forced to get creative.","popularity":0.137,"poster_path":null,"release_date":"2023-04-15","title":"Sleepover","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"662029882495ab017d4fed67","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35,12,27],"id":1275898,"original_language":"en","original_title":"Sleepover","overview":"When a Truth or Dare game goes terribly wrong, four young girls are forced to get creative.","popularity":0.137,"poster_path":null,"release_date":"2023-04-15","title":"Sleepover","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"66202bb6d75bd6017c331680","department":"Production","job":"Producer","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35,12,27],"id":1275898,"original_language":"en","original_title":"Sleepover","overview":"When a Truth or Dare game goes terribly wrong, four young girls are forced to get creative.","popularity":0.137,"poster_path":null,"release_date":"2023-04-15","title":"Sleepover","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"66202c6d2495ab017d4fee33","department":"Camera","job":"Camera Operator","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'] ?? [];