stablekernel / aqueduct

Dart HTTP server framework for building REST APIs. Includes PostgreSQL ORM and OAuth2 provider.
https://aqueduct.io
BSD 2-Clause "Simplified" License
2.42k stars 280 forks source link

Getting Socket exception after restarting the aqueduct app #944

Closed 91priyansh closed 3 years ago

91priyansh commented 3 years ago

Exited (1) Unhandled exception: SocketException: Failed to create server socket (OS Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.

, errno = 10048), address = 0.0.0.0, port = 8888 #0 _NativeSocket.bind (dart:io-patch/socket_patch.dart:821:7)  #1 _RawServerSocket.bind. (dart:io-patch/socket_patch.dart) 

Exited (255)

Reductions commented 3 years ago

I think that the previous dart process didn't close and is keeping the socket busy.

91priyansh commented 3 years ago

i am running app in debug mode using vs code and i also close the debug session still getting the same error

jairoFernandez commented 3 years ago

kill the process for this port friend

91priyansh commented 3 years ago

@jairoFernandez yaa found the solution