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":"/h8SoExToAAN261NtMIbmqya2WlP.jpg","genre_ids":[35,80],"id":592445,"original_language":"pl","original_title":"Kalosze szczęścia","overview":"Two fairies, Terencja and Felicja are in posession of the Lucky Rain Boots, which they intend to give to the most deserving person in the city of Kraków. However, they consistently fall into the wrong hands, creating a multitude of absurd and comedic situations.","popularity":0.834,"poster_path":"/rxnGOXAUpNe7UgB34opKP2bFgk.jpg","release_date":"1958-10-20","title":"Kalosze szczęścia","video":false,"vote_average":4.8,"vote_count":4,"character":"Dispatcher in the Land of Magic (uncredited)","credit_id":"63f38a27a6725400d7c92fcd","order":56,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18,10770],"id":958092,"original_language":"pl","original_title":"Wyłap","overview":"A young PhD student is trying to get 34 dogs for his research.","popularity":0.266,"poster_path":null,"release_date":"1984-03-29","title":"Wyłap","video":false,"vote_average":0.0,"vote_count":0,"character":"Rysio's mother-in-law / Cook","credit_id":"6470ca37336e0100aae0c8d5","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":"/4qi6yyFfEDjC7mR3TiZAr5kr7NQ.jpg","genre_ids":[10752,18],"id":737800,"original_language":"pl","original_title":"Stajnia na Salvatorze","overview":"WWII. Zyga, one of the Resistance soldiers in Kraków is arrested by Gestapo. Soon later the Germans make a number of other arrests and Zyga is accused of being an informer.","popularity":0.981,"poster_path":"/8B4KL228CjEoFtcD7cgPlCmjdeE.jpg","release_date":"1967-10-06","title":"Stajnia na Salvatorze","video":false,"vote_average":0.0,"vote_count":0,"character":"Rudy's Grandmother","credit_id":"6208d55bc56d2d00687351aa","order":18,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":945609,"original_language":"pl","original_title":"Mansarda","overview":"After returning to Poland, the painter Aleksander Gierymski encounters a lack of understanding of his works.","popularity":0.883,"poster_path":null,"release_date":"1963-09-27","title":"Mansarda","video":false,"vote_average":0.0,"vote_count":0,"character":"Countess","credit_id":"649c394dfd4f80014f97dc10","order":14,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":935042,"original_language":"pl","original_title":"Julia, Anna, Genowefa...","overview":"25-year-old Anna works in the laboratory of the Lodz textile factory. She lives with her mother and recently married husband. Her life collapses when a stranger appears, looking for a daughter who has disappeared during the war.","popularity":0.843,"poster_path":"/RRjVcDoFuhltU1c4CXT6xW89HS.jpg","release_date":"1968-03-15","title":"Julia, Anna, Genowefa...","video":false,"vote_average":0.0,"vote_count":0,"character":"Mrs Szulc","credit_id":"625a5ef269eb900066cc2fad","order":11,"media_type":"movie"},{"adult":false,"backdrop_path":"/dE9NmxGCQSqOiqXFrKrjRGJGwF8.jpg","genre_ids":[10749,18],"id":157182,"original_language":"pl","original_title":"Granica","overview":"","popularity":1.278,"poster_path":"/kOcf94Cv6MHGJiMUHASy2PZze20.jpg","release_date":"1978-01-27","title":"The Border","video":false,"vote_average":4.8,"vote_count":3,"character":"starsza pani w salonie Kolichowskiej","credit_id":"627142e472d8551a497b1bb7","order":21,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35,10770,37],"id":934525,"original_language":"pl","original_title":"Człowiek, który zdemoralizował Hadleyburg","overview":"A stranger shows up in an American town, promising a reward for the person who once helped him out of trouble.","popularity":1.245,"poster_path":null,"release_date":"1967-01-01","title":"The Man That Corrupted Hadleyburg","video":false,"vote_average":0.0,"vote_count":0,"character":"Mary Richards","credit_id":"63390e5c501cf2007cd45981","order":0,"media_type":"movie"},{"adult":false,"backdrop_path":"/36vmiY4Ug31KkYaxsQgS4BpzXlz.jpg","genre_ids":[10752,18],"id":452120,"original_language":"pl","original_title":"Wolne miasto","overview":"The heroic struggle of Polish post office workers in Gdańsk on the first day of World War II.","popularity":1.873,"poster_path":"/84l94AOp6TSY6LxDPHqYjJI92bj.jpg","release_date":"1958-09-01","title":"Free City","video":false,"vote_average":6.8,"vote_count":4,"character":"Nowakowa","credit_id":"65bfde0f9f37b0017c5cae34","order":26,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35,18],"id":1282736,"original_language":"pl","original_title":"Komedie pomyłek","overview":"Three Polish TV movies packed together and released theatrically","popularity":0.642,"poster_path":"/7496JX0cC4SFVgckNYQWyhM7DCm.jpg","release_date":"1968-07-26","title":"Komedie pomyłek","video":false,"vote_average":0.0,"vote_count":0,"character":"Mary Richards (segment \"The Man That Corrupted Hadleyburg\")","credit_id":"66312bb19a8a8a0121ae0719","order":4,"media_type":"movie"},{"adult":false,"backdrop_path":"/6AnG2rg9AHKoXrCn2gR7mVorOCp.jpg","genre_ids":[18],"id":374794,"original_language":"pl","original_title":"Głos z tamtego świata","overview":"A doctor, though not having finished his studies, earns a living providing medical advice. A former nurse enters the stage, saying she hears voices from \"the other world\". At first, they can exploit gullible victims without problems, but soon the authorities begin showing in these quacks.","popularity":0.444,"poster_path":"/aOuJDqTVuSS4Sia8o3w72nj9Qf.jpg","release_date":"1962-10-17","title":"The Voice from Beyond","video":false,"vote_average":6.0,"vote_count":3,"character":"Aniela","credit_id":"568280bbc3a3686075012ae1","order":13,"media_type":"movie"},{"adult":false,"backdrop_path":"/pqFHiQ7ISP3kqy8ukyqHZtVJWIQ.jpg","genre_ids":[12,10752],"id":577882,"original_language":"pl","original_title":"Zwariowana noc","overview":"Three Polish resistance fighters hide in an old castle inhabitated by an old baroness and her relatives.","popularity":0.367,"poster_path":"/tLDvv2Z7puDpQ9Wwmf5XhEYctsg.jpg","release_date":"1967-07-28","title":"Zwariowana noc","video":false,"vote_average":5.5,"vote_count":2,"character":"Young Countess","credit_id":"5c4b69cbc3a36847778dbc08","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":"/5o5EQdy5Naenw76IWQEPp0ojwZH.jpg","genre_ids":[35,10752],"id":578083,"original_language":"pl","original_title":"Don Gabriel","overview":"The first Polish film to discuss the failure of September 1939 Polish-German war, seen from the point of view of a university intellectual, fascinated by German culture, who decides to take active part in the conflict.","popularity":1.017,"poster_path":"/egPRetwyye5eDFKRNmc6LbeAWPZ.jpg","release_date":"1966-09-01","title":"Don Gabriel","video":false,"vote_average":0.0,"vote_count":0,"character":"Emilka","credit_id":"5c4ca7dd92514105c15736d0","order":11,"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'] ?? [];