سلام ,
زمانی که متد json_response() رو فراخوانی میکنیم با ارور گازل مواجه شدم :
function json_response($data = null, $statusCode = 200)
{
header_remove();
header('Content-type : application/json');
http_response_code($statusCode);
echo json_encode($data);
exit();
}
ارور :
├ GuzzleHttp\Exception\ServerException: Server error: `POST http://tdd.fz/index.php` resulted in a `500 Internal Server Error` response:
├ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
├ <html><head>
├ <title>500 Internal Server Error</title>
├ </head><body>
├ < (truncated...)
.اگر هم این متد رو فراخوانی نکنم .. تست پاس میشه ’