Commit 3e8573c
authored
fix: handle empty object response from /tasks endpoint (#56)
The Redis Cloud API returns an empty object `{}` instead of an empty
array `[]` when there are no active tasks. This caused a deserialization
error ("invalid type: map, expected a sequence"). Use `get_raw()` and
pattern match on the response shape to handle both cases.1 parent 7fac53f commit 3e8573c
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
127 | 130 | | |
128 | 131 | | |
129 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
0 commit comments