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":"/zBrwzHrXLMKOSt7P5hA9WOWA0sU.jpg","genre_ids":[18],"id":3877,"original_language":"en","original_title":"Things We Lost in the Fire","overview":"A recent widow invites her husband's troubled best friend to live with her and her two children. As he gradually turns his life around, he helps the family cope and confront their loss.","popularity":9.887,"poster_path":"/fyMziX8tPzPSguUgOpKWkKK322S.jpg","release_date":"2007-09-26","title":"Things We Lost in the Fire","video":false,"vote_average":6.6,"vote_count":350,"character":"Spring","credit_id":"52fe43a5c3a36847f8064a27","order":8,"media_type":"movie"}],"crew":[{"adult":false,"backdrop_path":"/m7nMnR1Hm59klZOQ25VH7EnVJbJ.jpg","genre_ids":[99],"id":1148758,"original_language":"en","original_title":"Take the Ice","overview":"Goes behind the scenes of the first professional women’s hockey league. As the league’s founder struggles to keep the business afloat, the players must come together in the wake of an on-ice accident that leaves their teammate paralyzed.","popularity":0.398,"poster_path":"/kTfBywOuvgiQyWuY828zBXOIqd5.jpg","release_date":"2022-11-05","title":"Take the Ice","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"64a6d56c07faa21c92f19249","department":"Editing","job":"Assistant Editor","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'] ?? [];