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":[12,10751],"id":524836,"original_language":"en","original_title":"Sugar Creek Gang: Secret Hideout","overview":"This is the fourth film in The Sugar Creek Gang series. The gang races through the swamp only to stumble upon previously unexplored territory that leads them right into the middle of a mystery. As if the puzzling new discoveries aren't enough, Poetry's lamb causes mischief in the schoolhouse and gets everyone into hot water with Miss Lilly. When things calm down, the gang plans an overnight stay in a cave near the cemetery, but Tom Till has been keeping a secret that is sure to shake things up. Matters get even more interesting when Old Man Paddler appears and reveals the truth behind the gang's secret hideout! Look for the other films in the five part Sugar Creek Gang DVD series to complete your collection: Swamp Robber, The Great Canoe Fish, Revival Villains, and Teacher Trouble","popularity":1.349,"poster_path":null,"release_date":"2005-08-30","title":"Sugar Creek Gang: Secret Hideout","video":false,"vote_average":8.0,"vote_count":2,"character":"Big Jim","credit_id":"5afe03ac0e0a262469000f0a","order":6,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":524838,"original_language":"en","original_title":"Sugar Creek Gang: Great Canoe Fish","overview":"Does the Great Canoe Fish actually exist? Or is he a two hundred year old canoe-size legend? The Sugar Creek Gang packs their fishing gear and sleeping bags for a canoe trip to find out. But they're not alone. Dragonfly spills the beans to the local town bullies who follow the gang in hopes of beating them to the catch. A gift from Old Man Paddler gives the gang an advantage, but the bullies keep their presence a secret long enough to nearly shatter the gang's hopes. Join the gang on their journey to the pregnant pig rock, help them catch waterfall worms, and find out if the Great Canoe Fish exists! Look for the other films in the five part Sugar Creek Gang series to complete your collection: Swamp Robber, Revival Villains, Secret Hideout, and Teacher Trouble!","popularity":0.638,"poster_path":"/aywZT1BZdjfcyir6d2OUs6MOBcx.jpg","release_date":"2004-11-19","title":"Sugar Creek Gang: Great Canoe Fish","video":false,"vote_average":8.0,"vote_count":2,"character":"Big Jim","credit_id":"5afe06639251417862001309","order":0,"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'] ?? [];