Skip to content

Commit 6d3d943

Browse files
committed
chore: fix reflection
1 parent 6732d70 commit 6d3d943

3 files changed

Lines changed: 24 additions & 41 deletions

File tree

package-lock.json

Lines changed: 21 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/bruno-requests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"quickjs-emscripten": "^0.32.0",
3030
"debug": "^4.4.3",
3131
"google-protobuf": "^4.0.2",
32-
"grpc-js-reflection-client": "^1.4.0",
32+
"grpc-js-reflection-client": "1.3.7",
3333
"http-proxy-agent": "~7.0.2",
3434
"https-proxy-agent": "~7.0.6",
3535
"is-ip": "^5.0.1",

packages/bruno-requests/src/grpc/grpc-client.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -809,12 +809,8 @@ class GrpcClient {
809809
if (reflectionServices.includes(service)) {
810810
continue;
811811
}
812-
try {
813-
const m = await client.listMethods(service, callOptions);
814-
methods.push(...m);
815-
} catch (serviceError) {
816-
console.warn(`[grpc] Skipping service "${service}" due to reflection error:`, serviceError.message);
817-
}
812+
const m = await client.listMethods(service, callOptions);
813+
methods.push(...m);
818814
}
819815

820816
const methodsWithType = methods.map((method) => {

0 commit comments

Comments
 (0)