Skip to content

Commit d049ebb

Browse files
authored
fix: throw error when no response (#1567)
1 parent b42601d commit d049ebb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/lib/filter/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ class Subscription {
8989
async (source) => await all(source)
9090
);
9191

92+
if (!res || !res.length) {
93+
throw Error(
94+
`No response received for request ${request.requestId}: ${res}`
95+
);
96+
}
97+
9298
const { statusCode, requestId, statusDesc } =
9399
FilterSubscribeResponse.decode(res[0].slice());
94100

0 commit comments

Comments
 (0)