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":"/p8oe0xRTXv4JXD5IJdk8ARwaQDx.jpg","genre_ids":[27,18],"id":1078928,"original_language":"es","original_title":"La ermita","overview":"Emma wants to learn how to communicate with the spirit of a girl who has been trapped in a hermitage for centuries, and to that end, she tries to persuade Carol, a sceptical medium, to help her.","popularity":8.364,"poster_path":"/4hUc6E3akm7vWtEvUzY8Z5TaD02.jpg","release_date":"2023-11-17","title":"The Chapel","video":false,"vote_average":5.1,"vote_count":16,"character":"Niño malote Ikastola","credit_id":"63d2a4a5cb71b80085ddd64a","order":19,"media_type":"movie"},{"adult":false,"backdrop_path":"/2iGUavwv86Hubv3V5Iq4qEQXDfE.jpg","genre_ids":[27,53,18],"id":848058,"original_language":"es","original_title":"Cerdita","overview":"A bullied overweight teenager sees a glimpse of hope when her tormentors are brutally abducted by a mesmerizing stranger.","popularity":16.353,"poster_path":"/pIFeu5gF7ofAxI9NqrWbJAjjKn6.jpg","release_date":"2022-10-07","title":"Piggy","video":false,"vote_average":6.6,"vote_count":591,"character":"Sara's Brother","credit_id":"610298947d5f4b002d9ed333","order":9,"media_type":"movie"},{"adult":false,"backdrop_path":"/kxxJBjQAwhQXTtJTRe0qursHuDH.jpg","genre_ids":[18,9648],"id":249670,"origin_country":["ES"],"original_language":"es","original_name":"Desde el mañana","overview":"Gabriela and Andrés, a doctor and a detective, must face a series of supernatural phenomena that disrupt their lives and those of their loved ones. Together, they have the opportunity to change their destinies.","popularity":37.834,"poster_path":"/tsaOWbVklGlGhMxRcRqPEi5QZIW.jpg","first_air_date":"2024-06-12","name":"From Tomorrow","vote_average":7.205,"vote_count":61,"character":"Teo Velasco Aizpúrua","credit_id":"6638af805a469001223e99f7","episode_count":8,"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'] ?? [];