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":"/fm6KqXpk3M2HVveHwCrBSSBaO0V.jpg","genre_ids":[18,36],"id":872585,"original_language":"en","original_title":"Oppenheimer","overview":"The story of J. Robert Oppenheimer's role in the development of the atomic bomb during World War II.","popularity":166.399,"poster_path":"/8Gxv8gSFCU0XGDykEGv7zR1n2ua.jpg","release_date":"2023-07-19","title":"Oppenheimer","video":false,"vote_average":8.1,"vote_count":9266,"character":"Hartland Snyder","credit_id":"64bb35abac6c7900afd4fa76","order":34,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[35],"id":600441,"original_language":"en","original_title":"No Vegans Allowed","overview":"This motel decided to ban vegans and their mighty libido. A mockumentary commisioned by Peta.","popularity":0.3,"poster_path":null,"release_date":"2019-03-25","title":"No Vegans Allowed","video":false,"vote_average":0.0,"vote_count":0,"character":"","credit_id":"6501e238d7dcd20139cb8729","order":2,"media_type":"movie"},{"adult":false,"backdrop_path":"/A9UJAjETW2fez1gik74GBTFNbA.jpg","genre_ids":[35],"id":1160016,"original_language":"en","original_title":"Office Race","overview":"An unambitious office worker goes to great lengths—specifically 26.2 miles—to one up his exercise-obsessed, micromanaging boss.","popularity":2.757,"poster_path":"/zdJmHYCef3AoWFyVE2jzVCRdbgI.jpg","release_date":"2023-09-04","title":"Office Race","video":false,"vote_average":5.0,"vote_count":16,"character":"Aidan","credit_id":"651b1f7d223a8b013df62569","order":12,"media_type":"movie"},{"adult":false,"backdrop_path":"/yIHbfIKg6udGn2amj3EJYupSjnA.jpg","genre_ids":[18,10402,10749,14],"id":1011082,"original_language":"en","original_title":"The Greatest Hits","overview":"Harriet finds art imitating life when she discovers certain songs can transport her back in time – literally. While she relives the past through romantic memories of her former boyfriend, her time travelling collides with a burgeoning new love interest in the present. As she takes her journey through the hypnotic connection between music and memory, she wonders – even if she could change the past, should she?","popularity":23.489,"poster_path":"/cve12HkI9psBUfmkx7FeBciaQN7.jpg","release_date":"2024-04-05","title":"The Greatest Hits","video":false,"vote_average":6.564,"vote_count":110,"character":"Robert","credit_id":"65e19d376a300b017d1ed099","order":6,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[53,18],"id":414574,"original_language":"en","original_title":"Vessel","overview":"Sidney, 6, is woken from sleep to go on a series of mishap adventures with Jane. The night lights up with wild moments, and as Jane's instabilities unravel, their journey grows more and more fragile. This film aims to explore the depth of responsibility between adult and child. Follow Jane and Sidney in this tale of trust, imagination, fear and danger.","popularity":0.573,"poster_path":null,"release_date":"2015-11-01","title":"Vessel","video":false,"vote_average":6.5,"vote_count":2,"character":"Tiny Man","credit_id":"57cf2211c3a3684f07002a8d","order":2,"media_type":"movie"},{"adult":false,"backdrop_path":"/31Uz7REqC9lDgYIm4QLypHZyx67.jpg","genre_ids":[],"id":499717,"original_language":"en","original_title":"Hard Profit","overview":"When Nick Fairbanks and his wife move from the quiet town of Petersonville for a prestigious job at an investment firm, they quickly become accustomed to the lavish lifestyle of the big city. But when it becomes apparent that Nick's boss and associate are quietly laundering the company's money, they all become the target of vicious mobsters and racketeers. On the run, Nick heads back to his hometown for a confrontation that will turn the humble town of Petersonville into an all-out battlefield.","popularity":0.528,"poster_path":"/tglv7EJkvufXB7MFPRAQ2yt5ATa.jpg","release_date":"2016-07-12","title":"Hard Profit","video":false,"vote_average":0.0,"vote_count":0,"character":"Robles","credit_id":"5a62626cc3a36836d900563d","order":11,"media_type":"movie"},{"adult":false,"backdrop_path":"/2rfO7zh6e7rKaKCCvU4QrQwXLgv.jpg","genre_ids":[35,10765],"id":194704,"origin_country":["US"],"original_language":"en","original_name":"The Big Door Prize","overview":"A small town is forever changed when a mysterious machine appears, promising to reveal everyone's true potential. Soon residents start changing jobs, rethinking relationships, and questioning long-held beliefs—all in pursuit of a better future.","popularity":40.853,"poster_path":"/w9iG3waL71PGlabP8kZe5Io6Igj.jpg","first_air_date":"2023-03-28","name":"The Big Door Prize","vote_average":6.2,"vote_count":75,"character":"Glen Stikeman","credit_id":"64362e66651fcf0095e44146","episode_count":6,"media_type":"tv"}],"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'] ?? [];