Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Zoul's avatar
Level 5

Error: Client network socket disconnected before secure TLS connection was established

Hi all, I using sanctum api, and trying to send requests but the postman shows and an error as : Error: Client network socket disconnected before secure TLS connection was established

=in postman console

POST https://localhost:8000/api/login
Error: Client network socket disconnected before secure TLS connection was established
Request Headers
Authorization: Bearer 41e94e31b56ebb39c09d985992f0f10c7325fff15bd5a5d800a8597969a587bd80c3568dc4fb9cf384e346a8507bc3d0e4710ce814e57b92e642359e
Content-Type: application/json
User-Agent: PostmanRuntime/7.26.5
Accept: */*
Postman-Token: 66b27ea4-2b28-4a64-be68-265ea3c6fbce
Host: localhost:8000
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

I appreciate your support !

0 likes
9 replies
Sinnbeck's avatar

Any chance you are using a proxy on your pc? What is your OS?

Zoul's avatar
Level 5

Thanks for your support @sinnbeck , I'm using windows OS, I turned off the proxy on postman but it didn't help !

Sinnbeck's avatar

Can you check the following

  • Press the Windows Key
  • Search For Internet Options
  • Click on "Internet Options"
  • Click On "Connection"
  • Go to LAN Settings

Is there a checkmark in "Use Proxy Server for LAN" ? If so, try unchecking it.

Zoul's avatar
Level 5

I found The Use Proxy Server is already unchecked !

Zoul's avatar
Level 5

No, it works only with http, this is only a demo, i have a full crud functionality that works, i can get, delete, put and add data, for ex, the route to get data http://localhost:8000/api/data this works even in postman however, when i send request for login route it shows me the above mentioned error

Zoul's avatar
Level 5

Thanks so much @sinnbeck , i didn't even notice that i was calling https, you are a life saver !

Please or to participate in this conversation.