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":"/zWNPH96q8o94hQYfncAZC04aygu.jpg","genre_ids":[10751,18],"id":82246,"original_language":"hi","original_title":"अब दिल्ली दूर नहीं","overview":"A young boy travels to Delhi, wanting to meet Prime Minister to seek justice for his father who has been wrongly sentenced to death.","popularity":0.89,"poster_path":"/9QVIiWekeQghuBNwqD4LKCyQEUJ.jpg","release_date":"1957-01-01","title":"Ab Dilli Dur Nahin","video":false,"vote_average":5.5,"vote_count":4,"character":"Ghasita","credit_id":"52fe48469251416c910867f5","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":"/b7dF8ICb5XEso0ayoRWBblUwwrt.jpg","genre_ids":[18],"id":1163778,"original_language":"hi","original_title":"रंगीली","overview":"1952 Bollywood film.","popularity":0.68,"poster_path":"/e694avhfVgPZMA7QLvg4z9dP5Fk.jpg","release_date":"1952-01-01","title":"Rangeeli","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"64d6a225f495ee0290e33ffb","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":"/4B5xHmaXE1qMhdHpA28iYISbJEA.jpg","genre_ids":[],"id":1163826,"original_language":"hi","original_title":"Nateeja","overview":"1947 bollywood film.","popularity":0.566,"poster_path":"/qoolYltWukXy1TzCchg9iDyeMvm.jpg","release_date":"1947-01-01","title":"Nateeja","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"64d6c371f14dad013a8b6e12","order":0,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":1164632,"original_language":"hi","original_title":"सगाई","overview":"Chandni and her dad belong to a well-off family. Iftekhar feels that Chandni has come of age and must get married, and he selects a groom for her and asks her to marry him. She refuses and runs away from home. She meets up with Fooman and Dhaboo and gets into a series of adventures with them, including eluding the police. One of their adventures lands them aboard a ship captained by Prem, who is transporting Princess Shehzadi to her native land. The princess likes Prem and would like him to marry her, but Prem refuses, and as soon as they land, Prem is arrested by the King, imprisoned, and tortured. Fooman, Dhaboo, and Chandni plan to help Prem to escape, which jeopardizes their own lives.","popularity":1.357,"poster_path":"/mz5XtWp1ZfEPNRRUFqvtKzzn8Bh.jpg","release_date":"1951-03-20","title":"Sagai","video":false,"vote_average":0.0,"vote_count":0,"character":"Dhaboo","credit_id":"64d92d40001bbd013aee8500","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":1195567,"original_language":"hi","original_title":"नेक परवीन","overview":"A woman faces all of her marital hardships given by her husband with patience.","popularity":0.298,"poster_path":"/2DYmfDy8lvHXCcFn7pCXLQFfjHj.jpg","release_date":"1946-06-14","title":"Nek Pervin","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"6537a0eeae366800ada78a3a","order":2,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":1216673,"original_language":"en","original_title":"Aabroo","overview":"Aabroo is a Bollywood film. It was released in 1943. The film was directed by Nazir and starred Sitara Devi, Yakub, Masud, Nazir Ahmed, Laddan and Chandabai. The music was composed by Pandit Gobindram.","popularity":1.134,"poster_path":null,"release_date":"1943-01-01","title":"Aabroo","video":true,"vote_average":0.0,"vote_count":0,"character":"Hari","credit_id":"6577eec49451e70fea6ea99a","order":1,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35,18,80],"id":306357,"original_language":"hi","original_title":"Paying Guest","overview":"An incompetent lawyer gets evicted, dons the guise of an old man to gain accommodation, falls for the owner's daughter, then faces numerous life-changing challenges.","popularity":0.889,"poster_path":"/vi1jVsmQynaO75SwtUbR6qhHDNP.jpg","release_date":"1957-01-01","title":"Paying Guest","video":false,"vote_average":7.0,"vote_count":1,"character":"","credit_id":"5f5f95dbbdc34c0038ef7679","order":5,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[10751,18,10749,80,10402],"id":410341,"original_language":"hi","original_title":"Beqasoor","overview":"When Brijmohan moves out with his ailing mother due to a family dispute, he comes across a runaway woman on his quest for a new job. What follows is the journey and trials and tribulations of these two strangers as they traverse, courtship, marriage and family politics.","popularity":0.361,"poster_path":"/1f2hPurpqW2EZYHmMA6P7AbHpha.jpg","release_date":"1950-06-02","title":"Beqasoor","video":false,"vote_average":0.0,"vote_count":0,"character":"Ghanshyam","credit_id":"5f72246cfbe36f003953500a","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18,10749,53],"id":628854,"original_language":"hi","original_title":"Nirala","overview":"A doctor unknowingly spurns a woman who loves him, compelling her to marry a wealthy king whose three wives allegedly killed themselves.","popularity":0.672,"poster_path":"/bfNVIDRO96g9a9ccxGsMs4SBmrm.jpg","release_date":"1950-06-11","title":"Nirala","video":false,"vote_average":4.0,"vote_count":1,"character":"","credit_id":"5f722bf2d38b580036e404ad","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":965201,"original_language":"hi","original_title":"Hulchul","overview":"Kishore loves Asha, whose father raised him like a son, and sets out to earn money to wed her in great pomp. However, fate has other plans as it lands him in jail under a false charge.","popularity":0.377,"poster_path":"/tWqDg0hSV6UlpXuONgfHFm8ycka.jpg","release_date":"1951-02-02","title":"Hulchul","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"66f38d0f0eca17da1b0dc6d9","order":5,"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'] ?? [];