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":"/m6bHzc0M72hkxMIVCScSKqe0ElP.jpg","genre_ids":[35],"id":62025,"original_language":"it","original_title":"Quello che le ragazze non dicono","overview":"Francesca, Paola, Laura, and Alicia are four friends who all fall in love with the same man, a musician named Gigi. Alicia is a woman who fears compromising in her relationships, Laura is an overprotected dreamer, Paola is a lawyer who seeks true love, and Francesca is a dancer on a TV show","popularity":1.686,"poster_path":"/sovfxrgZNgBJEWpx6TKmKjliWYa.jpg","release_date":"2000-11-17","title":"Quello che le ragazze non dicono","video":false,"vote_average":5.4,"vote_count":20,"character":"","credit_id":"61b148e21684f70061c2054c","order":24,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":290009,"original_language":"it","original_title":"Negli occhi dell'assassino","overview":"","popularity":0.868,"poster_path":"/9bdMsoIYrPanDE36RGKlc3cntFA.jpg","release_date":"2009-09-13","title":"In the Eyes of the Murderer","video":false,"vote_average":0.0,"vote_count":0,"character":"Carlotta Boscariol","credit_id":"5404bee50e0a260c85003217","order":14,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":1068807,"original_language":"it","original_title":"La tentazione di esistere","overview":"A pensioner with many phobias realises one day that four million francs have been mistakenly deposited into his account. Instead of notifying the bank, he makes an unexpected decision: he withdraws the money and flees on his moped.","popularity":1.089,"poster_path":"/wfqIo003qqOzKcCOCMXrJ9Jdqc2.jpg","release_date":"2023-01-22","title":"La tentazione di esistere","video":false,"vote_average":0.0,"vote_count":0,"character":"Esther","credit_id":"63b2e203c56d2d0089b294ad","order":9,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":1068848,"original_language":"it","original_title":"Papaya 69","overview":"The uneventful encounter between Eva and Rainbow will give each of them a chance to reconcile with themselves and take revenge.","popularity":1.427,"poster_path":"/xOOo17ZyJV53cRRPUsQwgTLr7Xg.jpg","release_date":"2023-01-19","title":"Papaya 69","video":false,"vote_average":3.5,"vote_count":1,"character":"Zaira","credit_id":"63b300ae391b9c008b9fa990","order":8,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":374166,"original_language":"en","original_title":"Jump","overview":"A romantic drama set in a stunning village in Italian Switzerland. Alice is a beautiful and troubled twenty-something who is on the run from a life that is out of control. When her estranged father dies she returns to the village of her childhood to execute his will. Here she meets the grandmother she never knew, a man who may hold the key to her heart and a young epileptic boy. We watch to see if Alice can mend the damage inflicted by warring parents. Ultimately Jump is an uplifting story about the power of friendship and love.","popularity":0.306,"poster_path":null,"release_date":"2012-01-10","title":"Jump","video":false,"vote_average":0.0,"vote_count":0,"character":"Shop Owner","credit_id":"567d7cbdc3a3684be9006f8f","order":16,"media_type":"movie"},{"adult":false,"backdrop_path":"/9V98A3oLdm9UG5juS8I78cyU014.jpg","genre_ids":[35],"id":424009,"original_language":"it","original_title":"Non si ruba a casa dei ladri","overview":"Antonio, an honest citizen, seeks his revenge against Simone, a dishonest politician. Antonio initially wanted to report him but then, knowing Italy, a country in which the justice process is very long and uncertain, he decides to take revenge in another way: he discovers that his enemy has hidden the proceeds of his misdeeds in a Swiss bank and decides to organize a hit to get back what was stolen from him. To accomplish the feat, Antonio sets up a small gang, made up of non-professionals who have only one thing in common: they too have been defrauded by corrupt politics. The heist takes place in Zurich where the bank in which Simone hid the money is based. With a series of unpredictable consequences, and with a funny substitution of people (Antonio and his wife pretend to be Simone and his partner), a comic clockwork mechanism starts. And the heist begins.","popularity":4.829,"poster_path":"/4sOVH4xOOhvKQjMSDi0lUjP9mwt.jpg","release_date":"2016-11-03","title":"Non si ruba a casa dei ladri","video":false,"vote_average":5.7,"vote_count":175,"character":"Proprietaria albergo Zurigo","credit_id":"59a3e805925141774f05448e","order":23,"media_type":"movie"},{"adult":false,"backdrop_path":"/jYlgeRfWuvLOO8q7zde5lXBEQPn.jpg","genre_ids":[35],"id":548209,"original_language":"it","original_title":"Te lo dico pianissimo","overview":"After his ex-wife Addolorata's death, Giuseppe called \"Cicci\", a fifty years old manager, has to custody his son and doughter Matteo and Sara. Cicci has a long time relation with his partner Nikolas, a sincere and smart plumber. Cicci has three sisters Giuditta, Silvana and Norina: they grow him up as a son and they will put him in a very severe test on the way and how he has to grow up his childrens. The three women move to Cicci and Nikolas' house dictating their religious morals about the traditional family, inspired by don Paolo's words, a priest.","popularity":1.375,"poster_path":"/lo6LdQtB7LHITDR0wGqla32saUE.jpg","release_date":"2018-09-13","title":"Tell Me Softly","video":false,"vote_average":10.0,"vote_count":1,"character":"","credit_id":"5b9b6f19c3a3686c0e0104f3","order":9,"media_type":"movie"},{"adult":false,"backdrop_path":"/rgxUbmIocI6g3RwVsCKQoQN8tCH.jpg","genre_ids":[35],"id":78065,"original_language":"it","original_title":"Willy Signori e vengo da lontano","overview":"Willy is involved in a fatal car accident. Willy takes on the responsibility of supporting the dead man's pregnant girlfriend and the child, after it's birth.","popularity":6.135,"poster_path":"/sACDaDzj3FaLJgYcHBs7JSHjvBJ.jpg","release_date":"1989-12-20","title":"Willy Signori e vengo da lontano","video":false,"vote_average":6.4,"vote_count":47,"character":"Amica di Alessandra","credit_id":"5c0fc145c3a36825150e9d1b","order":9,"media_type":"movie"},{"adult":false,"backdrop_path":"/4J2kOfE6DM3Y4BBoR8yMaWN2yV7.jpg","genre_ids":[18],"id":571060,"original_language":"it","original_title":"Al centro dell'area di rigore","overview":"1942: A group of Roma fans, Carletto, Renato, Tina and Mozzicone, organize a trip to Turin to support their team in the decisive match for the Scudetto. They are joined by Roberto, Renato's brother-in-law, and Biagio, Renato's friend from Lazio. One of them has to acquire a precious document in the hands of an anti-fascist teacher.","popularity":0.64,"poster_path":"/iGQErEc2fq0QAjAwNNsdsgWk2I8.jpg","release_date":"1996-08-07","title":"Al centro dell'area di rigore","video":false,"vote_average":0.0,"vote_count":0,"character":"Pina","credit_id":"5c24da4f92514167efc72a03","order":12,"media_type":"movie"},{"adult":false,"backdrop_path":"/fvuVEPe9qfzUu5hXizRTN3GQKLy.jpg","genre_ids":[18,35],"id":484734,"original_language":"it","original_title":"Cercando Camille","overview":"When dutiful and loyal Camille decides to go on a road trip down memory lane with her Alzheimer's suffering father, she must learn to let her father go or risk losing her own chance at a life and happiness.","popularity":0.82,"poster_path":"/g3hRhsH7p75ZKow3fQkIAtg8vzC.jpg","release_date":"2017-10-30","title":"Finding Camille","video":false,"vote_average":6.5,"vote_count":6,"character":"Eloise","credit_id":"5e6284c1459ad6001355b563","order":6,"media_type":"movie"},{"adult":false,"backdrop_path":"/pPZidqmIy5O5phUhqASBXYVvgmk.jpg","genre_ids":[18],"id":719159,"original_language":"it","original_title":"Quello che non sai di me","overview":"A freshly married, harmonious couple - Patricia is Swiss, Ikendu is from Mali - is forced, as a result of the Ikendu's unexpected arrest, to deal with each other's dark sides, which is painful, but ultimately makes the relationship more mature.","popularity":0.615,"poster_path":"/lE7ufxmH5IQGTjmBdivJrW3Eny5.jpg","release_date":"2019-10-01","title":"What You Don't Know About Me","video":false,"vote_average":4.9,"vote_count":5,"character":"Gina","credit_id":"60d4e0469653f60048f1076c","order":13,"media_type":"movie"},{"adult":false,"backdrop_path":"/fbmmqjTqs5pfDpyrgQg2xKumlWD.jpg","genre_ids":[18],"id":175956,"original_language":"it","original_title":"La condanna","overview":"A girl and her art professor get trapped inside a castle-museum after it closes at night. After a little resistance she agrees to have sex with him, but then she sues the professor for rape. The professor will have to prove his innocence.","popularity":1.991,"poster_path":"/9yHaJngTlPQHB8eZEqGogTcuQZI.jpg","release_date":"1991-02-28","title":"The Conviction","video":false,"vote_average":5.5,"vote_count":14,"character":"","credit_id":"60d4df87b7fbbd002edcae31","order":6,"media_type":"movie"}],"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'] ?? [];