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":"/yUJHUuzrUXlmGcJoVXTwJhRcxVC.jpg","genre_ids":[35,10749,14],"id":700127,"original_language":"pt","original_title":"Lulli","overview":"After getting electrocuted by an MRI machine, an ambitious young medical student begins to hear the thoughts of others.","popularity":5.657,"poster_path":"/ztJHKv6KSSgCTWAI2STrX2BeuJZ.jpg","release_date":"2021-12-26","title":"Lulli","video":false,"vote_average":5.9,"vote_count":202,"character":"Paola","credit_id":"60517f79c072a200284380da","order":5,"media_type":"movie"},{"adult":false,"backdrop_path":"/3rLrsPWBQdzPh3k7sAZSlln2J2t.jpg","genre_ids":[35],"id":116883,"origin_country":["BR"],"original_language":"pt","original_name":"Politicamente Incorreto","overview":"","popularity":0.66,"poster_path":"/xnNSl4cOL0kGhLf713VDzE8wDwX.jpg","first_air_date":"2014-09-15","name":"Politicamente Incorreto","vote_average":3.0,"vote_count":2,"character":"Duda","credit_id":"6004b981a67254003e135b82","episode_count":8,"media_type":"tv"},{"adult":false,"backdrop_path":"/7Tzd7UGqusBujpbMFu9UqUEsSSw.jpg","genre_ids":[10766,18,10751],"id":83896,"origin_country":["BR"],"original_language":"pt","original_name":"Tempos Modernos","overview":"","popularity":29.286,"poster_path":"/tQS3xamoI9PpiaAeaOZ5gSeGdxg.jpg","first_air_date":"2010-01-11","name":"Tempos Modernos","vote_average":6.5,"vote_count":3,"character":"Maureen Lobianco","credit_id":"5c33e3620e0a2611b840e68d","episode_count":161,"media_type":"tv"},{"adult":false,"backdrop_path":"/chKuEdL9JJ6ZPJPrjLXYiACLFh9.jpg","genre_ids":[10766,18],"id":83595,"origin_country":["BR"],"original_language":"pt","original_name":"Além do Tempo","overview":"Livia and Felipe are in a forbidden love story doomed to end tragically. A century later, they both have a new chance to make their love real again. “Time After Time” is an innovative romance set in two different eras in which characters hold the opportunity to make up for their mistakes, come to terms with the past and write themselves another story.","popularity":30.962,"poster_path":"/806nRtr42FxowSJTWk88IZpWHrS.jpg","first_air_date":"2015-07-13","name":"Time After Time","vote_average":7.6,"vote_count":8,"character":"Vitória Ventura (jovem)","credit_id":"5cabcfc6925141698cfeba07","episode_count":74,"media_type":"tv"},{"adult":false,"backdrop_path":"/8OD8iFc1zdjkey1XvMEHjnuPGs1.jpg","genre_ids":[10766],"id":14424,"origin_country":["BR"],"original_language":"pt","original_name":"Malhação","overview":"Malhação is a Brazilian television series for the teenage audience. The soap started in 1995, and was set in a fictional Gym Club called Malhação on Barra da Tijuca, Rio de Janeiro. Through the years the location varied slightly. Although the name of the soap remains the same, it is now set in the Múltipla Escolha High School.","popularity":249.816,"poster_path":"/bF24r2FxsjzgkJcrbBU8RC9JVoU.jpg","first_air_date":"1995-04-24","name":"Young Hearts","vote_average":5.9,"vote_count":28,"character":"Tita","credit_id":"5cabeaa9c3a3687d00b6c763","episode_count":180,"media_type":"tv"},{"adult":false,"backdrop_path":"/nsf5Ns9zXUGEIJSSJmW7UsyKvqm.jpg","genre_ids":[18],"id":82529,"origin_country":["BR"],"original_language":"pt","original_name":"Assédio","overview":"A group of women gets together on social media to expose the sexual harassment they all suffered from a renowned specialist in reproductive medicine. The saga of perseverance and courage of these women begins when one of them decides to talk and reveal what was until then confined by the doctor’s office walls.","popularity":5.49,"poster_path":"/wBvAUGXFe1ZtZbOyFk3m6t5v4OI.jpg","first_air_date":"2018-09-21","name":"Harassment","vote_average":7.5,"vote_count":13,"character":"Eugênia","credit_id":"5ce026670e0a266f86cb3132","episode_count":10,"media_type":"tv"},{"adult":false,"backdrop_path":"/2LIDL5LWiLXTXs5nMqjtGgwu5JJ.jpg","genre_ids":[18],"id":57553,"origin_country":["BR"],"original_language":"pt","original_name":"Sessão de Terapia","overview":"Set in an office of a psychoanalyst, the series follows the professional and personal day-to-day work of therapist Theo. Displayed daily, each episode of the plot is marked by the story of one of his patients, and the last episode of the week will always bring an assessment of Theo's by his supervisor Dora.","popularity":20.465,"poster_path":"/4Quq4DQoMgy3Q6Wdtn1SLYvnXG.jpg","first_air_date":"2012-10-01","name":"Sessão de Terapia","vote_average":8.3,"vote_count":6,"character":"Milena","credit_id":"5ce1dd4892514150a1bc26af","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'] ?? [];