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":"/4H9a2oLOio3SZ0iyZPMEHBBOXn2.jpg","genre_ids":[12,18,10751,14],"id":37025,"original_language":"en","original_title":"The Prince and the Pauper","overview":"Two boys – the prince Edward and the pauper Tom – are born on the same day. Years later, when young teenage Tom sneaks into the palace garden, he meets the prince. They change clothes with one another before the guards discover them and throw out the prince thinking he's the urchin. No one believes them when they try to tell the truth about which is which. Soon after, the old king dies and the prince will inherit the throne.","popularity":6.97,"poster_path":"/sCamwylvoQ1gPvQ5xSybo4ymMbV.jpg","release_date":"1937-04-30","title":"The Prince and the Pauper","video":false,"vote_average":6.8,"vote_count":36,"character":"Choir (as St. Luke's Choristers)","credit_id":"52fe46219251416c9104a2df","order":33,"media_type":"movie"},{"adult":false,"backdrop_path":"/ugh4Bivk6dcLXz2bkwuotm9feYT.jpg","genre_ids":[18,10402],"id":98328,"original_language":"en","original_title":"The Great Caruso","overview":"Enrico Caruso's only passion is to sing. For that, he leaves his hometown of Naples, Italy, and travels to America to sing for the Metropolitan Opera. At first, his lack of education and poor background make him an outcast in the high-class opera world. Eventually, his voice wins him both fans and the hand of his love, Dorothy. But his nonstop pace and desire to perform at any cost eventually take their toll on the singer's health.","popularity":2.642,"poster_path":"/mKqAEKW8GzO98xlQ0JWrXAFnutS.jpg","release_date":"1951-04-16","title":"The Great Caruso","video":false,"vote_average":5.7,"vote_count":18,"character":"Vocal Ensemble (uncredited)","credit_id":"5b9c66c0c3a36803520046e6","order":18,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[10402],"id":359982,"original_language":"en","original_title":"Rainbow on the River","overview":"A young boy is forced to leave his family in the South and move in with relatives he doesn't know in New York.","popularity":1.033,"poster_path":"/bGUTKFnTFV8ILJitzu5ecUbuFWg.jpg","release_date":"1936-12-18","title":"Rainbow on the River","video":false,"vote_average":9.0,"vote_count":1,"character":"Choral Ensemble (uncredited)","credit_id":"5b9c5bbc9251410230002f28","order":12,"media_type":"movie"},{"adult":false,"backdrop_path":"/rvUITyIhqSxFDhg3SE5J1yiwgrn.jpg","genre_ids":[36,18,10749,12],"id":17831,"original_language":"en","original_title":"A Tale of Two Cities","overview":"The exciting story of Dr. Manette, who escapes the horrors of the infamous Bastille prison in Paris. The action switches between London and Paris on the eve of the revolution where we witness 'the best of times and the worst of times' - love, hope, the uncaring French Aristocrats and the terror of a revolutionary citizen's army intent on exacting revenge.","popularity":5.245,"poster_path":"/w96kBV97DplsI1YKnhoBcFG2vL1.jpg","release_date":"1935-12-25","title":"A Tale of Two Cities","video":false,"vote_average":6.7,"vote_count":62,"character":"Background Singers (uncredited)","credit_id":"5b9c64089251410230003872","order":12,"media_type":"movie"},{"adult":false,"backdrop_path":"/1e3nb2OYeLIXQ9yYdLb9NZVQmyv.jpg","genre_ids":[18,14,10751],"id":25842,"original_language":"en","original_title":"A Christmas Carol","overview":"Miser Ebenezer Scrooge is awakened on Christmas Eve by spirits who reveal to him his own miserable existence, what opportunities he wasted in his youth, his current cruelties, and the dire fate that awaits him if he does not change his ways. Scrooge is faced with his own story of growing bitterness and meanness, and must decide what his own future will hold: death or redemption.","popularity":13.859,"poster_path":"/cvr7x3CjBMsHv2GptR0tcFddMSa.jpg","release_date":"1938-12-16","title":"A Christmas Carol","video":false,"vote_average":7.1,"vote_count":132,"character":"Singers of 'Adeste Fideles' (uncredited)","credit_id":"5b9c5c5fc3a368034700366d","order":18,"media_type":"movie"},{"adult":false,"backdrop_path":"/paFUPuG8ImGQwCtR8vgwTW9iZWB.jpg","genre_ids":[18,10749,10402],"id":43881,"original_language":"en","original_title":"San Francisco","overview":"A beautiful singer and a battling priest try to reform a Barbary Coast saloon owner in the days before the great earthquake and subsequent fires in 1906.","popularity":6.568,"poster_path":"/zQF1UDB0ck4dRfKAn4XixGrCkjx.jpg","release_date":"1936-06-26","title":"San Francisco","video":false,"vote_average":6.6,"vote_count":69,"character":"Choir (uncredited)","credit_id":"5b9c648cc3a3680341004ecd","order":38,"media_type":"movie"},{"adult":false,"backdrop_path":"/kKD59GDPeapxwKp5FNSOLd7CQWe.jpg","genre_ids":[18,10749,10752],"id":27367,"original_language":"en","original_title":"Mrs. Miniver","overview":"Middle-class housewife Kay Miniver deals with petty problems. She and her husband Clem watch her Oxford-educated son Vin court Carol Beldon, the charming granddaughter of the local nobility as represented by Lady Beldon. Then the war comes and Vin joins the RAF.","popularity":9.223,"poster_path":"/fjPjx6FTaoTussbqoLj6OYTtUyi.jpg","release_date":"1942-07-03","title":"Mrs. Miniver","video":false,"vote_average":7.0,"vote_count":253,"character":"Choir (uncredited)","credit_id":"5b9c65dcc3a368035200454d","order":21,"media_type":"movie"},{"adult":false,"backdrop_path":"/7p5XTeAZAIXykWZhWHgkjBOjlPo.jpg","genre_ids":[10749,18],"id":22387,"original_language":"en","original_title":"Random Harvest","overview":"Wandered away from his asylum, an amnesiac World War I veteran falls in love with a music hall star but his amnesia makes it difficult to last.","popularity":11.654,"poster_path":"/x5W3FOGmifwK3e8IhLDQYvURIw2.jpg","release_date":"1942-12-17","title":"Random Harvest","video":false,"vote_average":7.2,"vote_count":100,"character":"Church Singers (uncredited)","credit_id":"5b9c66430e0a26383b004528","order":24,"media_type":"movie"},{"adult":false,"backdrop_path":"/hxJmyGWdptdL7slyPLykLse2zgz.jpg","genre_ids":[35,10402,10749],"id":43790,"original_language":"en","original_title":"Babes on Broadway","overview":"Penny Morris and Tommy Williams are both starstruck young teens but nobody seems to give them any chance to perform. Instead, they decide to put up their own show to collect money for a summer camp for the kids.","popularity":3.185,"poster_path":"/vN1D8TJm93jYtYZQp8p6Rd7HpDG.jpg","release_date":"1941-12-31","title":"Babes on Broadway","video":false,"vote_average":6.4,"vote_count":20,"character":"Church Choir (uncredited)","credit_id":"5e905e4900fb6b001aa141a5","order":14,"media_type":"movie"}],"crew":[{"adult":false,"backdrop_path":"/kKD59GDPeapxwKp5FNSOLd7CQWe.jpg","genre_ids":[18,10749,10752],"id":27367,"original_language":"en","original_title":"Mrs. Miniver","overview":"Middle-class housewife Kay Miniver deals with petty problems. She and her husband Clem watch her Oxford-educated son Vin court Carol Beldon, the charming granddaughter of the local nobility as represented by Lady Beldon. Then the war comes and Vin joins the RAF.","popularity":9.223,"poster_path":"/fjPjx6FTaoTussbqoLj6OYTtUyi.jpg","release_date":"1942-07-03","title":"Mrs. Miniver","video":false,"vote_average":7.0,"vote_count":253,"credit_id":"5c56ccf6925141544863588e","department":"Sound","job":"Conductor","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'] ?? [];