Have you done any recent updates to your computer? Are you running windows?
May 16, 2022
6
Level 13
Connection refuse localhost:1025
I have a strange behavior today.
When I have gone to debug an project in which I use ray, suddenly I find myself with thousands of continuous lines, with the message
Connection could not be established with host localhost :stream_socket_client(): Unable to connect to localhost:1025 (Connection refused)
Handler.php:52

On my handler I have this:
public function register()
{
$this->renderable(function (NotFoundHttpException $e, $request) {
if ($request->is('api/*')) {
return response()->json([
'message' => 'Not found'
], 404);
}
});
// This block is line 52
$this->renderable(function (ModelNotFoundException $e, $request) {
if ($request->is('api/*')) {
return response()->json([
'message' => 'Model not found'
], 404);
}
});
$this->reportable(function (Throwable $e) {
//
});
}
I do not understand the reason for this behavior, nor do I see why.
It happens to me in all projects.
And for me as a system administrator, that's an NFS port. Which drives me even crazier.
Level 39
1025 should be your mailhog port, is it running? Try restart if yes
2 likes
Please or to participate in this conversation.