- I tried posting data to influx DB from post man and JMeter HTTP Sampler and I was able to post the data successfully.
- When I tried mimicking the same calls via 'JSR223 Listener' with the help of BeanShell script, I received an error like below,
avax.script.ScriptException: Sourced file: eval stream : Typed variable declaration : Method Invocation httpClient.execute : at Line: 20 : in file: eval stream : httpClient .execute ( httpPost )
Called from method: write : at Line: 54 : in file: eval stream : write ( queryString ) Target exception: java.net.ConnectException: Connection timed out: connect in eval stream at line number 20
Can anyone please suggest me why this is causing the error and should do any modification in the script developed or any imports missing?