Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfluxDBSink has breaking change dependency on with RestSharp Version>= "107.3.0" #10

Open
cvizzini opened this issue Mar 23, 2022 · 0 comments

Comments

@cvizzini
Copy link

When implementing InfluxDB reporting as well as having RestSharp version > 106.12.0 with throw the following error:

System.MissingMethodException: 'Method not found: 'Void RestSharp.RestClient.set_UserAgent(System.String)'.'

var influxDbConfig = InfluxDbSinkConfig.Create(
	url: "http://localhost:8086", database: "API_Test",
	userName: "Admin", password: "password"
);

//create InfluxDB reporting sink
using var influxDb = new InfluxDBSink(influxDbConfig);

NBomberRunner
	.RegisterScenarios(scenariosToRun)
	.WithWorkerPlugins(pingPlugin)
	.WithReportingSinks(influxDb)
	.WithTestName(" API Test")
	.WithTestSuite(" API Test Suite")
	.Run();

This is due to the InfluxDB.Client required by InfluxDB Sink to be 3.1.0 which locks the RestSharp Version to 106.12.0. However the latest 4.0.0 supports RestSharp Version>= "107.3.0"

Please update to version InfluxDB.Client 4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant