jmeter-grpc-request icon indicating copy to clipboard operation
jmeter-grpc-request copied to clipboard

使用插件调用gRPC接口,但是抛出异常Exception: io.grpc.StatusRuntimeException: INTERNAL: http2 exception. []

Open tansunyj opened this issue 2 years ago • 6 comments

一、环境: 1.被测应用:https://gitee.com/whosly/study-grpc.git; 2.插件版本:1.2.3; 二、现象: 调用gRPC接口报告异常Exception: io.grpc.StatusRuntimeException: INTERNAL: http2 exception. [] 三、排查: 经过debug,ClientCaller类中public GrpcResponse call(String deadlineMs) 方法try代码块抛出异常;

tansunyj avatar Jul 08 '22 06:07 tansunyj

你好,你先尝试下这个包:https://github.com/yue-open/jmeter-grpc-request/releases/tag/v1.1.1 是否还有错误,或者可获得具体错误原因。

yl-yue avatar Jul 20 '22 07:07 yl-yue

你好,你先尝试下这个包:https://github.com/yue-open/jmeter-grpc-request/releases/tag/v1.1.1 是否还有错误,或者可获得具体错误原因。

image

wifiwang777 avatar Jul 22 '22 03:07 wifiwang777

你好,请截图响应异常:

image

yl-yue avatar Jul 22 '22 03:07 yl-yue

你好,请截图响应异常:

image

下午试了一下,又好了。。。

wifiwang777 avatar Jul 22 '22 10:07 wifiwang777

你好,你先尝试下这个包:https://github.com/yue-open/jmeter-grpc-request/releases/tag/v1.1.1 是否还有错误,或者可获得具体错误原因。

使用v1.1.1版本的插件,同样的报错,错误详情是 java.lang.RuntimeException: Caught exception while parsing request for rpc at vn.zalopay.benchmark.core.ClientCaller.buildRequestAndMetadata(ClientCaller.java:150) at vn.zalopay.benchmark.GRPCSampler.sample(GRPCSampler.java:84) at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:638) at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558) at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256) at java.lang.Thread.run(null:-1)

环境:

  1. idea打开压缩包中的项目,如果spring-grpc-server模块报错,可mvn package 一下spring-grpc-api模块
  2. 启动项目;
  3. 脚本、proto文件都在压缩包中 greetingService.zip

tansunyj avatar Jul 23 '22 01:07 tansunyj

@tansunyj 我担心你插件版本用错了,现主仓库已发布最新的插件:https://github.com/zalopay-oss/jmeter-grpc-request/releases/tag/v1.2.4

如果使用这个插件,你获得的异常应该类似上面的截图,你可以截取更多异常上下文信息,来帮助我们定位错误,以助问题更快的解决,因为我们在使用时,暂未遇到任何会导致不可使用的错误。

yl-yue avatar Aug 04 '22 07:08 yl-yue

This issue is stale because it has been open for 30 days with no activity.

huynhminhtan avatar Sep 04 '22 04:09 huynhminhtan

This issue was closed because it has been inactive for 14 days since being marked as stale.

huynhminhtan avatar Sep 18 '22 04:09 huynhminhtan