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":"/9h67Z3ICIbC1osV3ZONC3gjPzqH.jpg","genre_ids":[],"id":1154899,"original_language":"en","original_title":"Enchanted Hearts","overview":"Two high schoolers experiment with the means and ways of traditional witchcraft, a bride with a secret has second thoughts on her wedding day, and a loving couple quietly prepares their family for the cataclysmic event to come. Six spellbinding stories about private passions, stolen moments and the bonds we form when the world isn't looking.","popularity":1.185,"poster_path":"/7GtdeTotXruAXGIqbqixksaAech.jpg","release_date":"2023-07-21","title":"Enchanted Hearts","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"64bb78cbe9da69010d400670","order":8,"media_type":"movie"},{"adult":false,"backdrop_path":"/wBNMFrOfwQ3HvDrbPapJYRCHp12.jpg","genre_ids":[14,53,27],"id":426034,"original_language":"en","original_title":"The Changeover","overview":"Laura Chant, 16, lives with her mother and four-year-old brother Jacko in a poor new suburb on the edge of a partially demolished Christchurch, New Zealand. Laura is drawn into a supernatural battle with an ancient spirit who attacks Jacko and slowly drains the life out of him as the spirit becomes ever younger. Laura discovers her true identity and the supernatural ability within her, and must harness it to save her brother's life.","popularity":6.28,"poster_path":"/vfXRe0oE2A6JnbmBUNyr0pfRkFA.jpg","release_date":"2017-09-28","title":"The Changeover","video":false,"vote_average":5.7,"vote_count":43,"character":"Police Woman","credit_id":"5ea21411109cd000216c8dcf","order":16,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35],"id":78298,"original_language":"en","original_title":"Curry Munchers","overview":"The story of a guy who gets some hope \u0026amp; curry in his life, through love. It's the journey of 'Sid', who migrated from India to New Zealand, to have a life full of bikes \u0026amp; women, but reality hits when he comes to NZ.","popularity":1.715,"poster_path":"/ctYfdTGscDnethefMi05vraIGvw.jpg","release_date":"2011-02-11","title":"Curry Munchers","video":false,"vote_average":4.0,"vote_count":2,"character":"Chef","credit_id":"5ea213c1bdc34c00202400bf","order":4,"media_type":"movie"},{"adult":false,"backdrop_path":"/o2h3cG4WRddI8NUM2qrWhD9q4sW.jpg","genre_ids":[18],"id":788350,"original_language":"en","original_title":"The Night That Holds You","overview":"A young woman is obsessed by memories of her lover, who had vanished the previous summer.","popularity":1.642,"poster_path":"/qQvBKEoH859wsuMsss9m456fkEi.jpg","release_date":"2018-01-01","title":"The Night That Holds You","video":false,"vote_average":0.0,"vote_count":0,"character":"Valerie","credit_id":"6009111b676ce200495ef5df","order":0,"media_type":"movie"},{"adult":false,"backdrop_path":"/zvtgAR071FXEwCrxuSwTqmRs3Lv.jpg","genre_ids":[18],"id":857657,"original_language":"en","original_title":"Tomorrow I Quit","overview":"Margot is a French backpacker who always gets herself into trouble. When she finds out that her dodgy landlord has a dirty secret, she has no other choice but to skip rent and run away. On the run she crashes at her perfect sister's house, intruding on her marriage. Things get messy with the three of them under one roof as Margot faces problems on her way to becoming an adult.","popularity":0.397,"poster_path":"/2cfcBDsGG2M3dJWVr9AopWwb8Qu.jpg","release_date":"2021-08-03","title":"Tomorrow I Quit","video":false,"vote_average":0.8,"vote_count":2,"character":"Carol","credit_id":"61092c22e61e6d005f170c54","order":1,"media_type":"movie"},{"adult":false,"backdrop_path":"/5rQj9bF41XBYXx05BYVuDl9kzJc.jpg","genre_ids":[18,35],"id":3964,"origin_country":["NZ"],"original_language":"en","original_name":"Rude Awakenings","overview":"Rude Awakenings centres on two families who live next door to each other in a fashionable street in Ponsonby, a suburb of Auckland. The Rush family has just moved to their newly renovated house from a lifestyle block in Kumeu. They immediately hit a wrong chord with their new neighbours, the Short family.","popularity":1.414,"poster_path":null,"first_air_date":"2007-02-09","name":"Rude Awakenings","vote_average":6.0,"vote_count":1,"character":"Waitress","credit_id":"5ea21368a2d2e90021daf7c7","episode_count":2,"media_type":"tv"}],"crew":[{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":621026,"original_language":"en","original_title":"Daniel","overview":"A young novice at an isolated convent is confronted with the sudden desire to explore her sexual self in the wake of meeting a blue-tongued lizard. DANIEL is a religious erotic drama set in rural New Zealand.","popularity":1.022,"poster_path":"/vUyB1MFtitX97NjdGiL8BhP394g.jpg","release_date":"2019-08-11","title":"Daniel","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"5d48f6852d1e406fa1be56f5","department":"Directing","job":"Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[18],"id":621026,"original_language":"en","original_title":"Daniel","overview":"A young novice at an isolated convent is confronted with the sudden desire to explore her sexual self in the wake of meeting a blue-tongued lizard. DANIEL is a religious erotic drama set in rural New Zealand.","popularity":1.022,"poster_path":"/vUyB1MFtitX97NjdGiL8BhP394g.jpg","release_date":"2019-08-11","title":"Daniel","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"5d48f68e2d1e406fa1be5700","department":"Writing","job":"Writer","media_type":"movie"},{"adult":false,"backdrop_path":"/aGwqZeyHw7CTFehC7zUeG5teF9w.jpg","genre_ids":[80,53],"id":787916,"original_language":"en","original_title":"Munkie","overview":"Munkie follows a vengeful daughter whose violent plan of revenge against her domineering \"tiger parents\" spins out of control.","popularity":1.744,"poster_path":"/aIUbaz4q2yRu9iNDnodcdODzcUF.jpg","release_date":"2021-08-05","title":"Munkie","video":false,"vote_average":4.0,"vote_count":1,"credit_id":"6007bdf2a4af8f003cefa118","department":"Directing","job":"Continuity","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'] ?? [];