Подскажите, почему не отправляет данные json формата через POST?
$headers = [
'Content-Type' => 'application/json'
];
$client = new Client([
'headers' => $headers
]);
$r = $client->request('POST', 'http://185.250.207.195:8000/api', [
'login' => $request->login, 'password' => $request->password, 'proxy' => ['ip'=> '123', 'username' => '1234']
], $headers);
$body = $r->getBody();
echo $body;
выдает ошибку
(1/1) ServerException
Server error: `POST http://185.250.207.195:8000/api` resulted in a `500 Internal Server Error` response:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta na (truncated...)