Commit 9f3ea0e
committed
fix: resolve request hanging and proxy IPv4/IPv6 mismatch
- Fix Vite dev proxy: change target from localhost to 127.0.0.1 to
prevent IPv6/IPv4 mismatch (Vite binds IPv6, backend binds IPv4,
localhost resolves to ::1 on macOS causing proxy timeout)
- Fix SingleRequest loading state: add setLoading(false) in pre-request
script error path and a finally block so the spinner always clears
even on failure
All tests pass: 539 backend + 356 frontend1 parent fe3588d commit 9f3ea0e
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| 272 | + | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments