Commit 361d424
fix(frontend): vite health check timeout error (#2)
* fix(frontend): improve Vite health check reliability
Fixes the Vite dev server health check that was consistently failing
even when Vite was working correctly.
Changes:
- Replace string manipulation with urllib.parse for proper URL parsing
- Use async I/O (asyncio.open_connection) instead of blocking socket calls
- Verify HTTP response instead of just checking if port is open
- Improve error handling with specific exception types
- Add better debug logging for troubleshooting
This resolves the "Vite server not responding after 10.0s" warning that
appeared even when the server was functioning normally.
* style(frontend): fix linting and type checking issues
Address ruff and ty check warnings:
- Rename 'timeout' param to 'max_wait' to avoid ASYNC109 warning
- Remove unnecessary else after return (RET505)
- Use builtin TimeoutError instead of asyncio.TimeoutError (UP041)
All checks now pass:
✓ ruff check
✓ ty check
* style(frontend): apply ruff formatting
---------
Co-authored-by: Claude <[email protected]>1 parent e9a0703 commit 361d424
1 file changed
+36
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | 238 | | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
245 | 256 | | |
246 | 257 | | |
247 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
248 | 262 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
253 | 268 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
258 | 273 | | |
259 | | - | |
| 274 | + | |
| 275 | + | |
260 | 276 | | |
261 | 277 | | |
262 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
263 | 283 | | |
264 | 284 | | |
265 | 285 | | |
266 | 286 | | |
267 | 287 | | |
268 | 288 | | |
269 | | - | |
| 289 | + | |
270 | 290 | | |
271 | 291 | | |
272 | 292 | | |
| |||
310 | 330 | | |
311 | 331 | | |
312 | 332 | | |
313 | | - | |
| 333 | + | |
314 | 334 | | |
315 | 335 | | |
316 | 336 | | |
| |||
0 commit comments