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":null,"genre_ids":[35,18],"id":83290,"original_language":"en","original_title":"Alone in the T-Shirt Zone","overview":"Michael Mikaele is a young man in a catatonic state living in a psychiatric ward where his doctor thinks her sympathies for him justify raping him. It's all part of his mad world, and we see what brought him there. He's an artist from a broken home, working for eight years at a job that he loathes, drawing pictures from sayings on sexually suggestive T-shirts. Mike's unsympathetic boss, Bill, plays bad motivational tapes over the P.A., makes Mike's girlfriend (another employee) handle him during office hours, which is espied by co-worker Joni, and refuses to let Mike have the rest of the day off even though he is clearly ill. He ties together T-shirts out the bathroom window to escape, and befriends a man, Rod, whom, unbeknownst to him, is his girlfriends father. He, however, hallucinates that the cinematographer is walking around the apartment in nothing but a towel...","popularity":0.586,"poster_path":null,"release_date":"1986-01-01","title":"Alone in the T-Shirt Zone","video":false,"vote_average":1.0,"vote_count":1,"character":"Rod","credit_id":"642700ebc044290213053714","order":3,"media_type":"movie"},{"adult":false,"backdrop_path":"/j5gPfZuQzugvK9Kf5wtq6swC23W.jpg","genre_ids":[27,35,10749,878],"id":83416,"original_language":"en","original_title":"Kamillions","overview":"Nathaniel Pickman Wingate has opened a gateway to another dimension using equations and equipment in his basement laboratory. His wife, Nancy, wants him to get ready for his own birthday party. He wants his son Sam to help him. Sam is up in his room looking at pictures of Jasmine on his computer, and a poster of her arrives which he puts in his closet. Although it is Nathan's birthday, the family is enthralled by a visit from Cousin Desmon, who is now a count in Liechtenstein. While Sam is away getting equipment for his father with his friend Alex, his father gets sucked into the other dimension, and a creature from the parallel universe escapes, pursued by another. The first temporarily traps the second with its spit, attacks Desmon, and becomes a duplicate, absorning his thoughts from the unconscious body. The other manages to get free, and unable to find a human to mimic, finds the poster of Jasmine...","popularity":1.603,"poster_path":"/coYqidKJ29sLUUVzBemKkvy6PSu.jpg","release_date":"1990-10-04","title":"Kamillions","video":false,"vote_average":5.5,"vote_count":11,"character":"Birthday Party Guest","credit_id":"639321746e0d7200a3f27c50","order":38,"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'] ?? [];