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":"/sv4hCda3QuW3SVC6c0C7AouVAwG.jpg","genre_ids":[35,10751,10402,10749],"id":1103100,"original_language":"es","original_title":"Casi Ángeles en el teatro Gran Rex 2007","overview":"","popularity":1.768,"poster_path":"/5z6rAefIBan4rTlsSqnJ4csuu5s.jpg","release_date":"2007-06-02","title":"\"Casi Ángeles\" in the Gran Rex Theater 2007","video":false,"vote_average":9.4,"vote_count":5,"character":"Monito","credit_id":"659ddfbc9bcd0f00ee82f39b","order":13,"media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":152390,"origin_country":["US","AR"],"original_language":"es","original_name":"Cuando me sonreís","overview":"When you smile at me, he tells how the structured life of Gastón Murfi (Facundo Arana) changes overnight with the appearance of his father, Juan (Mario Pasik), whom he stopped seeing when he was a teenager; and his brother who he did not know, Juanse (Benjamin Rojas) who together make Gastón believe that Juanse is his son. Also in Gastón's life is his new neighbor Luna (Julieta Díaz), who has just arrived in the neighborhood after a love disappointment to set up a bar.","popularity":7.331,"poster_path":"/96tf6VnNyN4UudnNsusGepN7qt0.jpg","first_air_date":"2011-08-03","name":"Cuando me sonreís","vote_average":3.0,"vote_count":1,"character":"Juan Pablo \"Juampi\" Murfi","credit_id":"61abe5e335db450067371064","episode_count":78,"media_type":"tv"},{"adult":false,"backdrop_path":"/tVXXPNnNWeoENMRUiVQxvKNWGnr.jpg","genre_ids":[],"id":16321,"origin_country":["AR"],"original_language":"es","original_name":"Casi Ángeles","overview":"","popularity":73.55,"poster_path":"/udjzwnd0foTPIJUZKW579YCHvb1.jpg","first_air_date":"2007-03-21","name":"Casi Ángeles","vote_average":7.6,"vote_count":19,"character":"Monito","credit_id":"61be7042f288380062a6a7d3","episode_count":326,"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'] ?? [];