You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gin Golang server seems to hang after 3 or 4 requests while using Air #334
I'm new to dev so Im hoping this isn't a installation problem but I'm noticing that my Go server stops responding after 3 or sometimes 4 responses.
I'm on windows, latest version of Go.
I'm building an api on localhost and sending requests through Postman (and double checked the lack of response with Hoppscotch as well). In both situations I noticed the responses from my server stop after 3 or 4 requests; where I then need to Ctrl+C my vscode file, and re-run air.
However, if I use go run . on my code instead of air, i note that my server correctly responds without hanging.
Do I have an installation or configuration problem to look for, or is this a bug in Air?
@hgoona it's been almost a year. Sometimes air hangs in the air 😄 for me too and Ctrl + C doesn't stop it.
I have to manually kill it from another terminal with something like kill -9 <pid of air process>.
But after a few instances of this, it "magically" starts working again.
I just started using Air in the past 2 days and I'm having this issue as well and it's happening often enough that its very annoying. Are there any workarounds for this?
I also occasionally get this issue.
If I kill the terminal and restart air, the port is usually still occupied, so I am required to kill the process kill -9 <PID> before starting air again.
Otherwise, loving air.
edit: I use echo rather than gin.
Reacted by Johnny, Isaac de Andrade, Ricko Yu, Eze Anyanwu and Chris Lentz
Activity
andradei commentedon Nov 14, 2023
@hgoona it's been almost a year. Sometimes
airhangs in the air 😄 for me too andCtrl + Cdoesn't stop it.I have to manually kill it from another terminal with something like
kill -9 <pid of air process>.But after a few instances of this, it "magically" starts working again.
okseb commentedon Jan 17, 2024
I just started using Air in the past 2 days and I'm having this issue as well and it's happening often enough that its very annoying. Are there any workarounds for this?
W1M0R commentedon Mar 11, 2024
Same issue here.
duizabojul commentedon Mar 25, 2024
Same issue on mac docker with orbstack, can't ctrl C to stop air process
dimmerz92 commentedon Apr 25, 2024
I also occasionally get this issue.
If I kill the terminal and restart air, the port is usually still occupied, so I am required to kill the process
kill -9 <PID>before starting air again.Otherwise, loving air.
edit: I use echo rather than gin.
andradei commentedon Feb 27, 2025
I just learned CTRL + \ kills air (it causes a ton of goroutine panics) and frees the used port.
Still not a solution.
github-actions commentedon May 21, 2026
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.