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":"/re1MrGOcUYxrp3Eeq1sffTYLNWX.jpg","genre_ids":[28,35,18],"id":38677,"original_language":"te","original_title":"అదుర్స్","overview":"Twin brothers who are separated at birth receive different upbringing. After they grow up, they chance upon each other when one of them gets kidnapped by hoodlums.","popularity":3.624,"poster_path":"/xcrwqmzYY9t6RQOHfS7KtnMbDRj.jpg","release_date":"2010-01-13","title":"Adhurs","video":false,"vote_average":5.9,"vote_count":17,"character":"Chari's Adoptive Grandmother","credit_id":"61c382f77eb5f2005f4c1375","order":11,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35,10749],"id":241563,"original_language":"ta","original_title":"கல்யாண சமையல் சாதம்","overview":"Raghu, a software engineer, faces several challenges in his arranged marriage as he suffers from erectile dysfunction and tries to find a solution to his problem.","popularity":1.241,"poster_path":"/7eejQLAR6YpbXEm9K2PVKWA52EC.jpg","release_date":"2013-12-07","title":"Kalyana Samayal Saadham","video":false,"vote_average":6.8,"vote_count":3,"character":"Meera's grandmother","credit_id":"61dcb93287a27a0042263dfb","order":8,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35],"id":210924,"original_language":"ta","original_title":"சொன்னா புரியாது","overview":"Shiva, a dubbing artiste lending voice to English films, has an aversion towards the idea of marriage and hates being in a commitment. However, his life takes unexpected turns when his mother blackmails him to meet a girl of her choice, Anjali. But Shiva has plans of his own to rule out the idea of marriage with Anjali.","popularity":1.772,"poster_path":"/w8YOC18eYMAVgNvb4bvmQHb7b0f.jpg","release_date":"2013-07-26","title":"Sonna Puriyathu","video":false,"vote_average":3.6,"vote_count":4,"character":"Shiva's grandmother","credit_id":"54d083fec3a3684314002809","order":5,"media_type":"movie"},{"adult":false,"backdrop_path":"/xGEKaPoage3UKNrzuqp9KRswFYM.jpg","genre_ids":[10749,18],"id":69446,"original_language":"ta","original_title":"ரிதம்","overview":"Karthikeyan, a photo editor in Mumbai, is a widower whose parents wish to see him settled and happy. Chitra, a widow with a son, gives them hope, unaware that their pasts are intertwined.","popularity":1.761,"poster_path":"/qEUETISm24DWeJReO8dNmxjGvCu.jpg","release_date":"2000-09-15","title":"Rhythm","video":false,"vote_average":7.7,"vote_count":11,"character":"Karthik's mother","credit_id":"54e6ef47c3a3685b00000f91","order":9,"media_type":"movie"},{"adult":false,"backdrop_path":"/ed4iq5kHCDnrsvCaXDItZGEUV6f.jpg","genre_ids":[28,18,53,80],"id":19978,"original_language":"ta","original_title":"அந்நியன்","overview":"Unable to bear the growing corruption in society and rejection from his love interest, a meek lawyer becomes diagnosed with multiple personality disorder due to which the personalities of a vigilante killer and a metrosexual start existing within him.","popularity":7.011,"poster_path":"/c00EX1zqb8DppHIRB6d51kN5Y27.jpg","release_date":"2005-06-17","title":"Anniyan","video":false,"vote_average":7.4,"vote_count":98,"character":"Ambi's Grandmother","credit_id":"57b27c249251414e9e00233f","order":15,"media_type":"movie"},{"adult":false,"backdrop_path":"/pWgrBvyUwyMu4VaFVCvnZTO7aeD.jpg","genre_ids":[18,28,10749],"id":21463,"original_language":"ta","original_title":"ரோஜா","overview":"Roja lives in a Tamil village, and her sister is about to marry a man from the city, who decides to marry Roja instead and gets a job assignment in Kashmir, where some militants decide to kidnap them.","popularity":6.348,"poster_path":"/1ZHr93dgcJ6jSAYpKISemBmYoIy.jpg","release_date":"1992-08-15","title":"Roja","video":false,"vote_average":6.8,"vote_count":60,"character":"Roja's paternal grandmother","credit_id":"5aa759dfc3a36839cb0175e5","order":9,"media_type":"movie"},{"adult":false,"backdrop_path":"/h4kMpAzuwLT2xg3mc8eRpL4tZIv.jpg","genre_ids":[27],"id":257075,"original_language":"ta","original_title":"ஜூலி கணபதி","overview":"Tenkasi, the creator of a hit television show, finds himself in the house of Julie, a fan, after an accident. However, she reveals herself to be emotionally unstable and potentially dangerous.","popularity":1.558,"poster_path":"/gChw8ncSoUmUkbvNAyMlxPsMam7.jpg","release_date":"2003-02-01","title":"Julie Ganapathi","video":false,"vote_average":7.5,"vote_count":2,"character":"","credit_id":"5c3c9196c3a36853ce3cde0c","order":5,"media_type":"movie"},{"adult":false,"backdrop_path":"/gCoRFn80eW6dORRQhVOzGcqzOX6.jpg","genre_ids":[80],"id":63818,"original_language":"ta","original_title":"பட்டியல்","overview":"Two contract killers, who wish to leave the crime world, are betrayed by their boss.","popularity":1.181,"poster_path":"/gLASre6Bh78nvSNYl8vPxhiFVUK.jpg","release_date":"2006-02-17","title":"Pattiyal","video":false,"vote_average":7.4,"vote_count":7,"character":"Sandhya's Grandmother","credit_id":"5cb878f10e0a266b9bf142ab","order":9,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[10749,28,35],"id":277880,"original_language":"ta","original_title":"வின்னர்","overview":"A young man moves to his hometown; here he falls in love with the village head's daughter. The village head learns about this and he has the girl abducted; if the young man tries to rescue her, his parent's life will be at stake.","popularity":1.606,"poster_path":"/pGdTtKmQGoMpuTLqPwk67QpdS79.jpg","release_date":"2003-09-27","title":"Winner","video":false,"vote_average":5.1,"vote_count":7,"character":"Neelaveni’s Grandmother","credit_id":"5e15e788d399e60014fdbbe7","order":21,"media_type":"movie"},{"adult":false,"backdrop_path":"/1UGkeYQsW2kml28YURNGdkNCosq.jpg","genre_ids":[35,18],"id":66352,"original_language":"ta","original_title":"சதி லீலாவதி","overview":"Arun, a married man, has an affair with Priya as he dislikes his wife Leelavathi, who is plain-looking and overweight. When she discovers Arun's affair, she plots with Dr. Sakthivel to win Arun back.","popularity":1.516,"poster_path":"/1f0DRg1LO4rSXCxxjLdVlNP4qMb.jpg","release_date":"1995-01-15","title":"Sathi Leelavathi","video":false,"vote_average":8.0,"vote_count":12,"character":"Ambujam maami","credit_id":"5edad7f2726fb1002185c246","order":12,"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'] ?? [];