Blazemeter / jmeter-http2-plugin

HTTP2 plugin for Apache JMeter
Apache License 2.0
45 stars 27 forks source link

http2 POST sampler shows java.util.concurrent.ExecutionException #33

Open Rupasri33 opened 1 year ago

Rupasri33 commented 1 year ago

Hi, I'm using http2 sampler for my application that is http2 enabled and for one of the http2 sampler request with POST and content-type=text , I'm seeing exception:

Response code:Non HTTP response code: java.util.concurrent.ExecutionException Response message:Non HTTP response message: java.net.ConnectException: Connection timed out: no further information

Environment:

Windows :10 x64 JDK :"11.0.16.1" Jmeter :5.3

Is there a mandate requirement for content-type to be JSON for http2 sampler?

RicardoPoleo commented 1 year ago

Hello @Rupasri33,

Thanks for taking the time to report this behavior.

What I'm missing about your environment is the version of the plugin that you are using. We had a similar reported behavior for the version v2.0, which was fixed in the v2.0.1. Are you using that version?

By the error message, I would say that the application is taking too long to answer, thus, you get a time-out exception. If you have the version v2.0.1, you can try updating the jmeter properties file with HTTPSampler.response_timeout = 30000 (which is excessive but, if the issue remains, this would discard that possibility).

Regarding this question:

Is there a mandate requirement for content-type to be JSON for http2 sampler?

No, there is no requirement for the content type to be JSON or any other type for that matter.

I would recommend you to check the jmeter log for any particular error displayed there (that could help us to narrow down where the issue might be).

Please, let us know if you find the trace of the error (if any), the version of the plugin you are using and, if you configured the jmeter.properties with the mentioned property, how that went.

Happy hacking 🚀