Commit 5e44aee
fix(pos-app): handle empty response body in transactions proxy
The upstream API can return an empty body on error responses, causing
JSON.parse to fail. Read as text first and only parse if non-empty.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 49e7bab commit 5e44aee
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments