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":"/dspLyKhvkR2YtTzoUNHF1RrhaIN.jpg","genre_ids":[35],"id":102962,"original_language":"fr","original_title":"L'Héroïque monsieur Boniface","overview":"A simple man gets involved in an implausible story of gangsters in the wake of the discovery of a criminal's dead body in his own bed.","popularity":0.456,"poster_path":"/5QvIndz7FHavO7AHKSjdIX5x6tR.jpg","release_date":"1949-10-19","title":"The Heroic Mr. Boniface","video":false,"vote_average":6.0,"vote_count":4,"character":"Le commissaire","credit_id":"620efce1d9f4a6004381f6ff","order":10,"media_type":"movie"}],"crew":[{"adult":false,"backdrop_path":null,"genre_ids":[35],"id":540515,"original_language":"fr","original_title":"Le truc du Brésilien","overview":"A young man who loves his wife wants rid of his troublesome mistress. He dresses up as a wealthy Brazilian and seduces her in a jiffy. He hopes to reach a settlement, that she must sign. In this settlement she will promise to break with her lover. He can then show that he is a faithful husband.","popularity":0.308,"poster_path":"/qHGWiI4dpQDof9dpiK0bzxDwPve.jpg","release_date":"1932-12-09","title":"The Brazilian thing","video":false,"vote_average":0.0,"vote_count":0,"credit_id":"617308c96d4c970092097c14","department":"Sound","job":"Music Director","media_type":"movie"},{"adult":false,"backdrop_path":null,"genre_ids":[],"id":452315,"original_language":"fr","original_title":"La Chanson d'une nuit","overview":"Opera singer Enrico Ferraro, tired of his too many engagements, jumps off the train escaping from his manager and changes to another going to the Riviera. He makes a friend and stops at a village, where (it seems) he can at last have some well deserved holidays, with the added interest of meeting a beautiful girl in the surroundings.","popularity":0.718,"poster_path":"/6bWcnLz00eejMEADwFAgFymJdVG.jpg","release_date":"1933-02-03","title":"Tell Me Tonight","video":false,"vote_average":5.0,"vote_count":3,"credit_id":"58f24ec39251413d95000c0b","department":"Editing","job":"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'] ?? [];